Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkrzem committed Feb 20, 2025
1 parent f45e6ef commit f047c8c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -505,12 +505,12 @@ def add_files_to_queue(
def get_queue_info(self, ursadb_id: str) -> QueueStatusDatabaseSchema:

with self.session() as session:
query = select(
query = select( # type: ignore
func.count(QueuedFile.id),
func.min(QueuedFile.created_at),
func.max(QueuedFile.created_at),
).where(QueuedFile.ursadb_id == ursadb_id)
queue_info: QueueStatusDatabaseSchema = session.exec(query).one()
queue_info = session.exec(query).one()

return QueueStatusDatabaseSchema(
size=queue_info[0],
Expand Down

0 comments on commit f047c8c

Please sign in to comment.