Merge pull request #3309 from yxlimo/tmdbid-for-downloader

This commit is contained in:
jxxghp
2024-12-03 06:55:36 +08:00
committed by GitHub
+1 -1
View File
@@ -53,7 +53,7 @@ class DownloadHistory(Base):
@staticmethod @staticmethod
@db_query @db_query
def get_by_hash(db: Session, download_hash: str): def get_by_hash(db: Session, download_hash: str):
return db.query(DownloadHistory).filter(DownloadHistory.download_hash == download_hash).first() return db.query(DownloadHistory).filter(DownloadHistory.download_hash == download_hash).last()
@staticmethod @staticmethod
@db_query @db_query