Spaces:
Running
Running
Mitesh Koshiya
commited on
Commit
·
08ce423
1
Parent(s):
4466935
Fix db insert issue
Browse files
main.py
CHANGED
@@ -69,7 +69,7 @@ CREATE TABLE IF NOT EXISTS user_entries (
|
|
69 |
action_required BOOLEAN,
|
70 |
entities JSONB,
|
71 |
amounts JSONB,
|
72 |
-
stores
|
73 |
processing_time_ms INT,
|
74 |
raw_json JSONB,
|
75 |
created_at TIMESTAMPTZ DEFAULT now()
|
@@ -691,6 +691,7 @@ def insert_text_entry(data):
|
|
691 |
**data,
|
692 |
"confidence_scores": Json(data["confidence_scores"]),
|
693 |
"language": Json(data["language"]),
|
|
|
694 |
"entities": Json(data["entities"]),
|
695 |
"amounts": Json(data["amounts"]),
|
696 |
"raw_json": Json(data["raw_json"])
|
|
|
69 |
action_required BOOLEAN,
|
70 |
entities JSONB,
|
71 |
amounts JSONB,
|
72 |
+
stores JSONB,
|
73 |
processing_time_ms INT,
|
74 |
raw_json JSONB,
|
75 |
created_at TIMESTAMPTZ DEFAULT now()
|
|
|
691 |
**data,
|
692 |
"confidence_scores": Json(data["confidence_scores"]),
|
693 |
"language": Json(data["language"]),
|
694 |
+
"stores": Json(data["stores"]),
|
695 |
"entities": Json(data["entities"]),
|
696 |
"amounts": Json(data["amounts"]),
|
697 |
"raw_json": Json(data["raw_json"])
|