This commit is contained in:
jxxghp
2023-08-31 20:12:38 +08:00
parent 2a7fc7bbe6
commit 781cffb255
2 changed files with 218 additions and 201 deletions

View File

@ -122,7 +122,7 @@ class DownloadFiles(Base):
@staticmethod
def get_by_fullpath(db: Session, fullpath: str):
return db.query(DownloadFiles).filter(DownloadFiles.fullpath == fullpath).order_by(
DownloadHistory.id.desc()).first()
DownloadFiles.id.desc()).first()
@staticmethod
def get_by_savepath(db: Session, savepath: str):