(20260219) API ready for production test.
This commit is contained in:
@@ -277,8 +277,6 @@ async def in_out_report_generate(
|
|||||||
): break
|
): break
|
||||||
if from_date.month < 12: from_date = from_date.replace(month = from_date.month + 1)
|
if from_date.month < 12: from_date = from_date.replace(month = from_date.month + 1)
|
||||||
else: from_date = from_date.replace(year = from_date.year + 1, month = 1)
|
else: from_date = from_date.replace(year = from_date.year + 1, month = 1)
|
||||||
print("MODEL:", inbound_data)
|
|
||||||
print(f"DATES ({len(dates_list)})")
|
|
||||||
for d in dates_list: print(d)
|
for d in dates_list: print(d)
|
||||||
|
|
||||||
# Login to TCAOFF:
|
# Login to TCAOFF:
|
||||||
@@ -327,7 +325,6 @@ async def in_out_report_generate(
|
|||||||
|
|
||||||
# Sort the records:
|
# Sort the records:
|
||||||
cumulative_register = sorted(cumulative_register, key = lambda x: x["date"])
|
cumulative_register = sorted(cumulative_register, key = lambda x: x["date"])
|
||||||
print(f"REGISTER ({len(cumulative_register)}):", json.to_string(cumulative_register[-10:]))
|
|
||||||
|
|
||||||
# Note down successful actions:
|
# Note down successful actions:
|
||||||
success = True
|
success = True
|
||||||
|
|||||||
Reference in New Issue
Block a user