당직근무 0.16.0 (웹 2026-12-01.1): 관리자 공지 메뉴와 앱 첫 화면 공지 띠

This commit is contained in:
블리어 committed 2026-12-01 05:50:27 +00:00
1 parent 2116ef5607
commit 5f2e2f6952
22 files changed
+265 -27

No files matched your search

+3 -2
View File
@@ -36,7 +36,7 @@ DATA = Path(os.environ.get("DUTY_DATA", ROOT / "data"))
DATA.mkdir(parents=True, exist_ok=True, mode=0o700)
ORIGIN = os.environ.get("DUTY_ORIGIN", "https://duty.itosm.co.kr").rstrip("/")
PREFIX = "/calendar"
SERVER_VERSION = "0.15.9"
SERVER_VERSION = "0.16.0"
COOKIE = "__Secure-duty_session"
pepper_file = DATA / "pairing.key"
if not pepper_file.exists():
@@ -673,7 +673,8 @@ def release_info():
@app.get(PREFIX + "/api/version")
async def version():
release = release_info()
return {**{key: release[key] for key in ("appVersion", "appVersionCode", "webVersion", "notes", "apkBytes", "apkSha256")}, "holidayRevision": holidays.read()[1]["revision"]}
return {**{key: release[key] for key in ("appVersion", "appVersionCode", "webVersion", "notes", "apkBytes", "apkSha256")}, "holidayRevision": holidays.read()[1]["revision"],
"notice": site_admin.notice(db)}
@app.get(PREFIX + "/")