Fix typo in chainqueue sql query count_tx
This commit is contained in:
parent
70cbbcc7de
commit
f9e6e7aeec
@ -489,8 +489,8 @@ def count_tx(chain_spec, sender=None, status=None, status_target=None, session=N
|
|||||||
if status_target == None:
|
if status_target == None:
|
||||||
status_target = status
|
status_target = status
|
||||||
q = q.filter(Otx.status.op('&')(status)==status_target)
|
q = q.filter(Otx.status.op('&')(status)==status_target)
|
||||||
if address != None:
|
if sender != None:
|
||||||
q = q.filter(TxCache.sender==address)
|
q = q.filter(TxCache.sender==sender)
|
||||||
result = q.count()
|
result = q.count()
|
||||||
SessionBase.release_session(session)
|
SessionBase.release_session(session)
|
||||||
return result
|
return result
|
||||||
|
Loading…
Reference in New Issue
Block a user