rairo commited on
Commit
45948c1
·
verified ·
1 Parent(s): 9cba44f

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -1
main.py CHANGED
@@ -363,8 +363,9 @@ def financial_statement():
363
  txns = []
364
  for s in snaps:
365
  d = s.to_dict()
 
366
  txns.append({
367
- "Date": d["Date"].to_datetime().strftime("%d/%m/%Y"),
368
  "Description": d.get("Description",""),
369
  "Amount": d.get("Amount",0),
370
  "Type": d.get("Type",""),
 
363
  txns = []
364
  for s in snaps:
365
  d = s.to_dict()
366
+ date_str = ts.strftime("%d/%m/%Y") if hasattr(ts, "strftime") else str(ts)
367
  txns.append({
368
+ "Date": date_str,
369
  "Description": d.get("Description",""),
370
  "Amount": d.get("Amount",0),
371
  "Type": d.get("Type",""),