Midgard
5ba49e6ecd
Better to show a fallback category if a kind isn't recognized than nothing at all! The code is refactored to have a table definition in RESTO_TABLES, this allows to DRY when recognizing unrecognized meals (hah). The ** operator is used to copy dicts while being able to amend them: {**meal, "name": …} is a copy of meal but with a different name. |
||
---|---|---|
.. | ||
static | ||
templates | ||
__init__.py | ||
app.py | ||
models.py |