home · contact · privacy
Improve /fix accounting scripts.
[misc] / calories.py
index 4352567aafa9e8bcdd9e31b2d4b4dcc0b52d43e3..28b1a16e0e99dfea186d6ff91f7dd8c006d1dad0 100644 (file)
@@ -251,8 +251,7 @@ class ConsumptionsHandler(PlomHandler):
                 to_delete += [target]
         i = 0
         if 'eatable_uuid' in postvars.keys():
-            for uuid_encoded in postvars['eatable_uuid']:
-                uuid = uuid_encoded
+            for uuid in postvars['eatable_uuid']:
                 if uuid not in to_delete:
                     e = Eatable(decode("title", i, False), decode("cals", i), decode("sugar_g", i), decode("standard_g", i), decode("comments", i, False))
                     db.add_eatable(uuid, e)