修复招聘公告导出500并增加图片缓存压缩

This commit is contained in:
2026-12-04 14:26:45 +08:00
parent eb50660a1b
commit 5246626e91
2 changed files with 57 additions and 20 deletions
+1 -1
View File
@@ -771,7 +771,7 @@ app = FastAPI(title="WorkLog 活动记录", version="2.0.0", lifespan=lifespan)
center.install(app, get_db, current_user, lambda: _db_path.parent / 'uploads', visible_clause)
center_duty.install(app, get_db, current_user)
center_export.install(app, get_db, current_user, visible_clause, lambda: _db_path.parent / 'uploads')
recruit.install(app, get_db, current_user)
recruit.install(app, get_db, current_user, _db_path.parent / 'recruit-images')
def timetable_collectors():
values = os.getenv('WORKLOG_TIMETABLE_COLLECTORS')