processing_uploads Shorts are working
This commit is contained in:
1 parent
d4db0b04a4
commit
f21a587cd0
3 files changed
+22
-7
No files matched your search
@@ -158,7 +158,8 @@ class Database:
|
||||
stmt = select(TwitchVideo).where(TwitchVideo.clip_is == False)
|
||||
return self.session.scalars(stmt).all()
|
||||
|
||||
def __update_date(self, record_id: str, field_name: str, date: str):
|
||||
def __update_date(self, field_name: str, date: str):
|
||||
record_id = 1
|
||||
record = self.session.get(Data, record_id)
|
||||
|
||||
if record:
|
||||
@@ -167,6 +168,9 @@ class Database:
|
||||
else:
|
||||
print(f"❌ Record {record_id} not found in __update_date.")
|
||||
|
||||
def update_date_shorts(self, date: str):
|
||||
self.__update_date("date_shorts", date)
|
||||
|
||||
def get_data(self) -> list[Data]:
|
||||
stmt = select(Data)
|
||||
return self.session.scalars(stmt).all()
|
||||
|
||||
Reference in new issue
Block a user