Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add code snippets to update the data fixtures

Roland Geidereff34d3e1973
diff --git a/extras/open-food-facts/README.md b/extras/open-food-facts/README.md
index bac64d589..d62e01fea 100644
--- a/extras/open-food-facts/README.md
+++ b/extras/open-food-facts/README.md
@@ -41,6 +41,17 @@ Run the import script
python manage.py import-off-products
```
+To update the data fixtures:
+
+```shell
+python manage.py dumpdata nutrition > extras/scripts/data.json
+cd extras/scripts
+python filter-fixtures.py
+zip ingredients.json.zip ingredients.json
+zip weight_units.json.zip weight_units.json
+zip ingredient_units.json.zip ingredient_units.json
+```
+
## 4
Don't forget to delete the dump and remove the containers if you love your