fix and working Clips downloader/uploader
This commit is contained in:
+4
-3
@@ -37,7 +37,8 @@ class Database:
|
||||
clip_by TEXT NOT NULL,
|
||||
view_count INTEGER NOT NULL,
|
||||
downloaded INTEGER NOT NULL,
|
||||
uploaded_yt INTEGER NOT NULL
|
||||
uploaded_yt INTEGER NOT NULL,
|
||||
shorts_upload_yt INTEGER NOT NULL
|
||||
)
|
||||
"""
|
||||
)
|
||||
@@ -71,11 +72,11 @@ class Database:
|
||||
if self.table == "clips":
|
||||
id = "slug"
|
||||
|
||||
CURSOR.execute(
|
||||
self.CURSOR.execute(
|
||||
f"UPDATE {self.table} SET uploaded_yt = 1 WHERE {id} = ?",
|
||||
(record_id,)
|
||||
)
|
||||
CONN.commit()
|
||||
self.CONN.commit()
|
||||
|
||||
def mark_as_downloaded(self, record_id: int):
|
||||
"""Updates the downloaded status to True (1) for a specific record ID."""
|
||||
|
||||
Reference in New Issue
Block a user