Docker and more calendar work
This commit is contained in:
parent
4527504c80
commit
f7a919ebf2
22 changed files with 2036 additions and 79 deletions
|
@ -35,6 +35,8 @@ def index():
|
|||
auto_download = 'auto_download' in request.form
|
||||
max_downloads = int(request.form.get('max_downloads', 5))
|
||||
delete_after_days = int(request.form.get('delete_after_days', 30))
|
||||
calendar_first_day = request.form.get('calendar_first_day', 'Monday')
|
||||
calendar_show_monitored_only = 'calendar_show_monitored_only' in request.form
|
||||
|
||||
# Validate download path
|
||||
if not os.path.exists(download_path):
|
||||
|
@ -52,6 +54,8 @@ def index():
|
|||
settings.auto_download = auto_download
|
||||
settings.max_downloads = max_downloads
|
||||
settings.delete_after_days = delete_after_days
|
||||
settings.calendar_first_day = calendar_first_day
|
||||
settings.calendar_show_monitored_only = calendar_show_monitored_only
|
||||
|
||||
db.session.commit()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue