Fix timestamp reference for completion dates

This commit is contained in:
2025-03-21 00:47:00 -04:00
parent be330115a1
commit fd149c9c7d

View File

@@ -115,8 +115,8 @@ def scan_torrents(qb_client, engine):
) )
if not torrent_instance: if not torrent_instance:
completed_on = ( completed_on = (
datetime.fromtimestamp(torrent.completed) datetime.fromtimestamp(torrent.completion_on)
if torrent.completed if torrent.completion_on
else None else None
) )
torrent_instance = Torrent( torrent_instance = Torrent(
@@ -154,7 +154,7 @@ def scan_torrents(qb_client, engine):
session.commit() session.commit()
if file_counter > 0: if file_counter > 0:
print(torrent.hash) print(torrent.hash)
else: elif torrent.progress == 1:
print(f"[CHECKED]: {torrent.name}") print(f"[CHECKED]: {torrent.name}")