Skip to content

Commit

Permalink
Update taskqueue.py
Browse files Browse the repository at this point in the history
  • Loading branch information
zer0py2c authored and amadisson committed Oct 12, 2023
1 parent d83cf26 commit 6984cec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/cuckoo/taskqueue.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ def _query_tasks(self, platform=None, os_version=None, limit=5):

def count_unscheduled(self):
return self._ses.query(
sqlalchemy.func.count(QueuedTask.id)
).filter_by(scheduled=False).scalar()
QueuedTask.id
).filter_by(scheduled=False).count()

def get_unscheduled_tasks(self, platform=None, os_version=None):
tasks = []
Expand Down

0 comments on commit 6984cec

Please sign in to comment.