Update main.py
Browse files
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":
|
| 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",""),
|