初始提交

This commit is contained in:
fanbook-wangdage
2025-12-28 17:01:42 +08:00
parent 3cace74c08
commit d67e42b067
20 changed files with 1284 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
from app.extensions import client
from app.config import Config
def get_announcements():
if Config.ISTEST_MODE:
return []
announcements = list(client.ht_server.announcement.find({}))
for a in announcements:
a.pop('_id', None)
return announcements