Fix Imgur URL database upgrade migration
This commit is contained in:
@@ -1694,9 +1694,9 @@ def dbcheck():
|
|||||||
for row in result:
|
for row in result:
|
||||||
img_hash = notification_handler.set_hash_image_info(
|
img_hash = notification_handler.set_hash_image_info(
|
||||||
rating_key=row['rating_key'], width=1000, height=1500, fallback='poster')
|
rating_key=row['rating_key'], width=1000, height=1500, fallback='poster')
|
||||||
data_factory.set_imgur_info(img_hash=img_hash, imgur_title=row['poster_title'],
|
data_factory.set_img_info(img_hash=img_hash, imgur_title=row['poster_title'],
|
||||||
imgur_url=row['poster_url'], delete_hash=row['delete_hash'],
|
imgur_url=row['poster_url'], delete_hash=row['delete_hash'],
|
||||||
service='imgur')
|
service='imgur')
|
||||||
|
|
||||||
db.action('DROP TABLE poster_urls')
|
db.action('DROP TABLE poster_urls')
|
||||||
except sqlite3.OperationalError:
|
except sqlite3.OperationalError:
|
||||||
|
Reference in New Issue
Block a user