mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2026-02-04 00:54:48 +00:00
7fe30bfebf37b55af780b0d8e29baedf9cdc5a23
Refactored add_meal routes to check for existing FoodItems by name or barcode and improved form handling. Made barcode optional in FoodItemForm. Added a unique constraint on (name, owner_id) for FoodItem in both the model and database migrations, while retaining the (barcode, owner_id) constraint. Updated FoodItem relationship to cascade deletes.
cal_counter
Calorie Counter Webapp
Languages
Python
60.1%
HTML
38.6%
Mako
0.7%
Dockerfile
0.4%
Shell
0.2%