Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ DB_PWD = os.getenv('DB_PWD')
|
|
26 |
DB_ENCRYPT = os.getenv('DB_ENCRYPT')
|
27 |
DB_NAME = os.getenv('DB_name')
|
28 |
DB_TABLE_NAME = os.getenv('DB_tableName')
|
29 |
-
frontend_url = os.getenv('
|
30 |
# Define connection string
|
31 |
conn_str = (
|
32 |
f"Driver={DB_DRIVER};"
|
@@ -300,7 +300,7 @@ async def submit_data(request: SubmitDataRequest):
|
|
300 |
Endpoint to receive data from the client via API.
|
301 |
"""
|
302 |
|
303 |
-
frontend_url = os.getenv('
|
304 |
truck_name = request.truck_name
|
305 |
autoSuggest = request.autoSuggest
|
306 |
consignments_data = request.consignments_data # This is already parsed from JSON
|
@@ -590,7 +590,7 @@ async def visualize_payload(payload: Dict[str, Any]):
|
|
590 |
"""
|
591 |
global processed_data_store
|
592 |
|
593 |
-
frontend_url = os.getenv('
|
594 |
destination_mapping = payload.get('destination_mapping')
|
595 |
|
596 |
|
|
|
26 |
DB_ENCRYPT = os.getenv('DB_ENCRYPT')
|
27 |
DB_NAME = os.getenv('DB_name')
|
28 |
DB_TABLE_NAME = os.getenv('DB_tableName')
|
29 |
+
frontend_url = os.getenv('FRONTEND_URL_NEW')
|
30 |
# Define connection string
|
31 |
conn_str = (
|
32 |
f"Driver={DB_DRIVER};"
|
|
|
300 |
Endpoint to receive data from the client via API.
|
301 |
"""
|
302 |
|
303 |
+
frontend_url = os.getenv('FRONTEND_URL_NEW')
|
304 |
truck_name = request.truck_name
|
305 |
autoSuggest = request.autoSuggest
|
306 |
consignments_data = request.consignments_data # This is already parsed from JSON
|
|
|
590 |
"""
|
591 |
global processed_data_store
|
592 |
|
593 |
+
frontend_url = os.getenv('FRONTEND_URL_NEW')
|
594 |
destination_mapping = payload.get('destination_mapping')
|
595 |
|
596 |
|