Fix calculate_attendance_status missing return result, move chart imports to top

This commit is contained in:
IT狗
2026-07-21 11:03:21 +08:00
parent 02b4a49e8c
commit 0b58a1c05a
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -309,6 +309,7 @@ def calculate_attendance_status(check_in, check_out, shift_start, shift_end):
result["status_text"] = " / ".join(status_parts) if status_parts else "正常"
return result
@app.get("/api/attendance/lateness")
async def get_lateness_stats(current_user: User = Depends(get_current_user)):
"""Calculate full attendance statistics: late, early, OT"""