feat: export calendar and backup db
This commit is contained in:
1 parent
306e21fe44
commit
f4985b7fbc
28 files changed
+712
-46
No files matched your search
+7
-4
@@ -1,6 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from datetime import date
|
||||
from datetime import date, time
|
||||
|
||||
from sqlalchemy import select
|
||||
from sqlalchemy.orm import Session
|
||||
@@ -32,7 +32,8 @@ def ensure_initial_data(db: Session) -> None:
|
||||
"slug": "night",
|
||||
"schedule_type": "fixed",
|
||||
"weekdays": "0,1,2,3,4,5,6",
|
||||
"label_time": "20:30–00:00",
|
||||
"start_time": time(20, 30),
|
||||
"end_time": time(0, 0),
|
||||
"rotation_anchor_date": None,
|
||||
},
|
||||
{
|
||||
@@ -40,7 +41,8 @@ def ensure_initial_data(db: Session) -> None:
|
||||
"slug": "saturday-lunch",
|
||||
"schedule_type": "rotation",
|
||||
"weekdays": "5",
|
||||
"label_time": "13:00–16:00",
|
||||
"start_time": time(13, 0),
|
||||
"end_time": time(16, 0),
|
||||
"rotation_anchor_date": date(2024, 1, 6),
|
||||
},
|
||||
{
|
||||
@@ -48,7 +50,8 @@ def ensure_initial_data(db: Session) -> None:
|
||||
"slug": "sunday-lunch",
|
||||
"schedule_type": "rotation",
|
||||
"weekdays": "6",
|
||||
"label_time": "13:00–16:00",
|
||||
"start_time": time(13, 0),
|
||||
"end_time": time(16, 0),
|
||||
"rotation_anchor_date": date(2024, 1, 7),
|
||||
},
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user