fix: manuelle Lebensmittel in der Liste wieder bearbeiten
Admin-Katalog und Nutzer-Liste oeffnen den Editor statt nur die Lesansicht; PUT gilt fuer zentrale und persoenliche Manuals. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
8b1e1da5d8
commit
9a0767c8ac
9 files changed
+59
-20
No files matched your search
@@ -29,6 +29,10 @@ _KIND_VIS = {
|
||||
_VIS_RANK = {VIS_PERSONAL: 0, VIS_GLOBAL: 1, VIS_BLS: 2}
|
||||
|
||||
|
||||
def same_id(a, b) -> bool:
|
||||
return str(a or "").replace("-", "").lower() == str(b or "").replace("-", "").lower()
|
||||
|
||||
|
||||
def visibility_of(food: dict[str, Any] | None) -> str:
|
||||
if not food:
|
||||
return VIS_BLS
|
||||
|
||||
Reference in new issue
Block a user