(20260219) API ready for production test.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user