Fix typo in chainqueue sql query count_tx

This commit is contained in:
nolash 2021-08-27 14:38:58 +02:00
parent 70cbbcc7de
commit f9e6e7aeec
Signed by: lash
GPG Key ID: 21D2E7BB88C2A746

View File

@ -489,8 +489,8 @@ def count_tx(chain_spec, sender=None, status=None, status_target=None, session=N
if status_target == None:
status_target = status
q = q.filter(Otx.status.op('&')(status)==status_target)
if address != None:
q = q.filter(TxCache.sender==address)
if sender != None:
q = q.filter(TxCache.sender==sender)
result = q.count()
SessionBase.release_session(session)
return result