Fix OAuth page

This commit is contained in:
Joren de Graaf
2026-10-19 16:51:53 +02:00
parent a8418cdba7
commit 743785c2e0
54 changed files with 1794 additions and 27 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ from .services.product_resolution import (create_manual, external_matches, impor
local_matches, match_data)
from .services.inventory_consumption import FACTORS, StockError, consume as consume_stock, preview as preview_stock, stock as stock_packages, undo as undo_stock
SCOPES = {'food:read', 'food:write', 'inventory:read', 'inventory:write'}
SCOPES = {'food:read', 'food:write', 'inventory:read', 'inventory:write', 'journal:read', 'journal:write'}
NUTRIENTS = ('calories_kcal', 'carbohydrates_g', 'protein_g', 'fat_g', 'fibre_g', 'sugars_g', 'salt_g')
MANUAL_FIELDS = ('calories_kcal', 'carbohydrates_g', 'protein_g', 'fat_g', 'fibre_g', 'sugars_g', 'salt_g')
MAX_IMAGE_BYTES = 5 * 1024 * 1024