autosync shopping list and settings

This commit is contained in:
vabene1111
2020-09-21 23:54:46 +02:00
parent 086a4aea47
commit f91d9fcfe2
8 changed files with 69 additions and 3 deletions

View File

@@ -192,6 +192,11 @@ def user_settings(request):
up.plan_share.set(form.cleaned_data['plan_share'])
up.ingredient_decimals = form.cleaned_data['ingredient_decimals']
up.comments = form.cleaned_data['comments']
up.shopping_auto_sync = form.cleaned_data['shopping_auto_sync']
if up.shopping_auto_sync < settings.SHOPPING_MIN_AUTOSYNC_INTERVAL:
up.shopping_auto_sync = settings.SHOPPING_MIN_AUTOSYNC_INTERVAL
up.save()
if 'user_name_form' in request.POST: