mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 13:19:16 -05:00
cleanup migrations, remove pint to speed up base conversion and calculate properties on converted ingredients
This commit is contained in:
@@ -160,7 +160,8 @@ class OpenDataImporter:
|
||||
update_list.append(Food(id=existing_food_id, open_data_slug=k, ))
|
||||
|
||||
Food.load_bulk(insert_list, None)
|
||||
Food.objects.bulk_update(update_list, update_field_list)
|
||||
if len(update_list) > 0:
|
||||
Food.objects.bulk_update(update_list, update_field_list)
|
||||
|
||||
self._update_slug_cache(Food, 'food')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user