Created single function to upload chat vodeos and short videos
This commit is contained in:
1 parent
f21a587cd0
commit
24081e1576
2 files changed
+186
-4
No files matched your search
@@ -38,7 +38,7 @@ class Data(Base):
|
||||
name = Column(String, nullable=False)
|
||||
date_shorts = Column(String, nullable=False)
|
||||
date_videos = Column(String, nullable=False)
|
||||
date_videos_chat = Column(String, nullable=False)
|
||||
date_videos_chats = Column(String, nullable=False)
|
||||
|
||||
class YoutubeInfo(Base):
|
||||
__tablename__ = "youtube_info"
|
||||
@@ -171,6 +171,9 @@ class Database:
|
||||
def update_date_shorts(self, date: str):
|
||||
self.__update_date("date_shorts", date)
|
||||
|
||||
def update_date_chats(self, date: str):
|
||||
self.__update_date("date_videos_chat", date)
|
||||
|
||||
def get_data(self) -> list[Data]:
|
||||
stmt = select(Data)
|
||||
return self.session.scalars(stmt).all()
|
||||
|
||||
Reference in new issue
Block a user