fix-sqlite3
This commit is contained in:
@@ -254,10 +254,10 @@ class TroostwijkScraper:
|
|||||||
# Fetch all API data concurrently (or use cache if HTML was cached)
|
# Fetch all API data concurrently (or use cache if HTML was cached)
|
||||||
lot_id = page_data.get('lot_id')
|
lot_id = page_data.get('lot_id')
|
||||||
auction_id = page_data.get('auction_id')
|
auction_id = page_data.get('auction_id')
|
||||||
|
import sqlite3
|
||||||
|
|
||||||
if from_cache:
|
if from_cache:
|
||||||
# Check if we have cached API data in database
|
# Check if we have cached API data in database
|
||||||
import sqlite3
|
|
||||||
conn = sqlite3.connect(self.cache.db_path)
|
conn = sqlite3.connect(self.cache.db_path)
|
||||||
cursor = conn.cursor()
|
cursor = conn.cursor()
|
||||||
cursor.execute("""
|
cursor.execute("""
|
||||||
|
|||||||
Reference in New Issue
Block a user