Spaces:
Build error
Build error
Commit ·
7a4473f
1
Parent(s): 2fd7c25
fix: method call
Browse files
server.py
CHANGED
|
@@ -65,7 +65,7 @@ def create_app() -> Flask:
|
|
| 65 |
async with PassportIndexVisaScraper(debug=True) as scraper:
|
| 66 |
if not await scraper.initialize_session():
|
| 67 |
return jsonify({"error": "Failed to initialize session"}), 500
|
| 68 |
-
result = await scraper.
|
| 69 |
|
| 70 |
if result:
|
| 71 |
return jsonify(result), 200
|
|
|
|
| 65 |
async with PassportIndexVisaScraper(debug=True) as scraper:
|
| 66 |
if not await scraper.initialize_session():
|
| 67 |
return jsonify({"error": "Failed to initialize session"}), 500
|
| 68 |
+
result = await scraper.check_visa_requirement_browser(source, destination)
|
| 69 |
|
| 70 |
if result:
|
| 71 |
return jsonify(result), 200
|