Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -277,6 +277,7 @@ def create_app():
|
|
| 277 |
# Use an f-string properly to log the uploaded file name
|
| 278 |
print(f"[INFO_PRINT]: Database file '{file.filename}' uploaded and loaded.")
|
| 279 |
socketio.emit("log", {"message": f"[INFO]: Database file '{file.filename}' uploaded and loaded."})
|
|
|
|
| 280 |
return redirect(url_for("index")) # Go back to index page
|
| 281 |
# For GET requests, simply render the upload form.
|
| 282 |
return render_template("upload.html")
|
|
|
|
| 277 |
# Use an f-string properly to log the uploaded file name
|
| 278 |
print(f"[INFO_PRINT]: Database file '{file.filename}' uploaded and loaded.")
|
| 279 |
socketio.emit("log", {"message": f"[INFO]: Database file '{file.filename}' uploaded and loaded."})
|
| 280 |
+
print("Received file:", file.filename)
|
| 281 |
return redirect(url_for("index")) # Go back to index page
|
| 282 |
# For GET requests, simply render the upload form.
|
| 283 |
return render_template("upload.html")
|