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)