summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-misc/gourmet/files/nutritional-db-fix.patch')
-rw-r--r--app-misc/gourmet/files/nutritional-db-fix.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/app-misc/gourmet/files/nutritional-db-fix.patch b/app-misc/gourmet/files/nutritional-db-fix.patch
new file mode 100644
index 000000000000..4779551c89d8
--- /dev/null
+++ b/app-misc/gourmet/files/nutritional-db-fix.patch
@@ -0,0 +1,29 @@
+--- gourmet/plugins/nutritional_information/data_plugin.py 2013-08-28 19:13:38.000000000 -0400
++++ gourmet/plugins/nutritional_information/data_plugin.py 2013-10-30 23:37:51.358616037 -0400
+@@ -20,7 +20,7 @@
+ pass
+ self.db._setup_object_for_table(self.db.usda_weights_table, UsdaWeight)
+
+- def setup_nutrition_conversions_table (self):
++ def setup_nutritionconversions_table (self):
+ self.db.nutritionconversions_table = Table('nutritionconversions',self.db.metadata,
+ Column('id',Integer(),primary_key=True),
+ Column('ingkey',String(length=255),**{}),
+@@ -58,7 +58,7 @@
+
+ self.setup_usda_weights_table()
+ self.setup_nutritionaliases_table()
+- self.setup_nutrition_conversions_table()
++ self.setup_nutritionconversions_table()
+ self.db.do_add_nutrition = self.do_add_nutrition
+
+ def update_version (self, gourmet_stored, plugin_stored, gourmet_current, plugin_current):
+@@ -68,7 +68,7 @@
+ print 'RECREATE USDA WEIGHTS TABLE'
+ self.db.alter_table('usda_weights',self.setup_usda_weights_table,{},
+ [name for lname,name,typ in parser_data.WEIGHT_FIELDS])
+- self.db.alter_table('nutritionconversions',self.setup_nutrition_conversions_table,{},
++ self.db.alter_table('nutritionconversions',self.setup_nutritionconversions_table,{},
+ ['ingkey','unit','factor'])
+ if plugin_stored == '1':
+ # Add choline