diff --git a/app.py b/app.py index 7287874..3bfa753 100644 --- a/app.py +++ b/app.py @@ -208,7 +208,7 @@ def handle_file_upload(request): meta = { 'pickup_password': base64.urlsafe_b64encode(hashlib.sha256(pickup_password.encode()).digest()).decode(), 'original_name': filename, - 'timestamp': datetime.datetime.now().isoformat() + 'timestamp': datetime.now().isoformat() } with open(os.path.join(UPLOAD_FOLDER, f"{random_id}.json"), 'w') as f: json.dump(meta, f) @@ -694,4 +694,4 @@ if __name__ == "__main__": serve(app, host="0.0.0.0", port=5000) else: print("[INFO] Running in DEVELOPMENT mode with Flask server.") - app.run(debug=True, host="0.0.0.0", port=5000) \ No newline at end of file + app.run(debug=True, host="0.0.0.0", port=5000)