Update main.py
Browse files
main.py
CHANGED
|
@@ -300,7 +300,7 @@ def upload_statements():
|
|
| 300 |
dt = datetime.utcnow()
|
| 301 |
record = {
|
| 302 |
"business_id": business_id,
|
| 303 |
-
"Date":
|
| 304 |
"Description": txn.get("Description", ""),
|
| 305 |
"Amount": txn.get("Amount", 0),
|
| 306 |
"Type": txn.get("Type", "expense"),
|
|
|
|
| 300 |
dt = datetime.utcnow()
|
| 301 |
record = {
|
| 302 |
"business_id": business_id,
|
| 303 |
+
"Date": datetime.strptime(txn["Date"], "%d/%m/%Y"),
|
| 304 |
"Description": txn.get("Description", ""),
|
| 305 |
"Amount": txn.get("Amount", 0),
|
| 306 |
"Type": txn.get("Type", "expense"),
|