Fix: get_payments
crud default Filter
values. (#1703)
* get_payments: deafult values for filter * lololololoolol
This commit is contained in:
parent
b6223f0e6d
commit
e39241a9e9
|
@ -426,11 +426,10 @@ async def get_payments(
|
|||
Filters payments to be returned by complete | pending | outgoing | incoming.
|
||||
"""
|
||||
|
||||
if not filters:
|
||||
filters = Filters()
|
||||
filters = filters or Filters()
|
||||
|
||||
filters.sortby = "time" or filters.sortby
|
||||
filters.direction = "desc" or filters.direction
|
||||
filters.sortby = filters.sortby or "time"
|
||||
filters.direction = filters.direction or "desc"
|
||||
filters.limit = limit or filters.limit
|
||||
filters.offset = offset or filters.offset
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user