database , chat vod and shorts update error messages
This commit is contained in:
+4
-4
@@ -80,18 +80,18 @@ class Database:
|
||||
"""Flags a specific row record to downloaded (0)."""
|
||||
self.__mark_as(record_id, "downloaded", "0")
|
||||
|
||||
def __get_unuploaded(self, set_row: str) -> list[Any]:
|
||||
def __get_unuploaded(self, set_row: str, also: str = "") -> list[Any]:
|
||||
"""Retrieve all rows that were download but not uploaded"""
|
||||
self.cursor.execute(f"SELECT {self.columns} FROM twitch_videos WHERE downloaded = 1 AND {set_row} = 0")
|
||||
self.cursor.execute(f"SELECT {self.columns} FROM twitch_videos WHERE downloaded = 1 AND {set_row} = 0 {also}")
|
||||
return self.cursor.fetchall()
|
||||
|
||||
def get_unuploaded_shorts(self) -> list[Any]:
|
||||
"""Retrieve all rows that were download but not uploaded_yt_shorts"""
|
||||
return self.__get_unuploaded("uploaded_yt_shorts")
|
||||
return self.__get_unuploaded("uploaded_yt_shorts", "AND clip_is = 1")
|
||||
|
||||
def get_unuploaded_chats(self) -> list[Any]:
|
||||
"""Retrieve all rows that were download but not uploaded_yt_chats"""
|
||||
return self.__get_unuploaded("uploaded_yt_chats")
|
||||
return self.__get_unuploaded("uploaded_yt_chats", "AND clips_is = 0")
|
||||
|
||||
def get_unuploaded(self) -> list[Any]:
|
||||
"""Retrieve all rows that were download but not uploaded_yt"""
|
||||
|
||||
Reference in New Issue
Block a user