Docker and more calendar work
This commit is contained in:
parent
4527504c80
commit
f7a919ebf2
22 changed files with 2036 additions and 79 deletions
|
@ -15,6 +15,8 @@ class Settings(db.Model):
|
|||
auto_download = db.Column(db.Boolean, default=False)
|
||||
max_downloads = db.Column(db.Integer, default=5)
|
||||
delete_after_days = db.Column(db.Integer, default=30)
|
||||
calendar_first_day = db.Column(db.String(10), default="Monday") # "Monday" or "Sunday"
|
||||
calendar_show_monitored_only = db.Column(db.Boolean, default=False) # False = show all, True = monitored only
|
||||
|
||||
def __repr__(self):
|
||||
return f'<Settings id={self.id}>'
|
||||
|
@ -29,5 +31,7 @@ class Settings(db.Model):
|
|||
'naming_format': self.naming_format,
|
||||
'auto_download': self.auto_download,
|
||||
'max_downloads': self.max_downloads,
|
||||
'delete_after_days': self.delete_after_days
|
||||
'delete_after_days': self.delete_after_days,
|
||||
'calendar_first_day': self.calendar_first_day,
|
||||
'calendar_show_monitored_only': self.calendar_show_monitored_only
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue