(20260219) API ready for production test.

This commit is contained in:
2026-02-19 15:48:43 +05:30
parent c7d9e4b7b5
commit 0fd23f1024
5 changed files with 9 additions and 7 deletions
@@ -300,8 +300,9 @@ async def in_out_report_generate(
cosec_notes = json.from_string(r.get("json_notes", "{}")).get("cosec", {})
ar_dt = r.get("ar_date")
if ar_dt: ar_dt = datetime.datetime.strptime(ar_dt, "%Y-%m-%d").timestamp()
cumulative_register.append({
formatted_record = {
"date": ar_dt,
"dateStr": r.get("ar_date"),
"empId": r.get("pseudonym"),
"empName": r.get("full_name"),
"status": r.get("status"),
@@ -313,7 +314,8 @@ async def in_out_report_generate(
"lastOutLoc": cosec_notes.get("lastOutLoc"),
"workSeconds": cosec_notes.get("workSeconds"),
"workHours": cosec_notes.get("workHours"),
})
}
cumulative_register.append(formatted_record)
# Remove unwanted records:
from_ts = inbound_data.fromDate.timestamp()