mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-26 23:45:47 +00:00
refactor
This commit is contained in:
parent
86c526feb1
commit
f9ae8de688
@ -215,8 +215,7 @@ def get_txids_filtered(connection, asset_id: str, operation: str = None,
|
|||||||
else:
|
else:
|
||||||
_tx_ids = space.select([asset_id], index="id_search")
|
_tx_ids = space.select([asset_id], index="id_search")
|
||||||
_assets_ids = space.select([asset_id], index="only_asset_search")
|
_assets_ids = space.select([asset_id], index="only_asset_search")
|
||||||
_result = [sublist[0] for sublist in _assets_ids.data] + [sublist[0] for sublist in _tx_ids.data]
|
return tuple(set([sublist[0] for sublist in _assets_ids.data] + [sublist[0] for sublist in _tx_ids.data]))
|
||||||
return tuple(set(_result))
|
|
||||||
|
|
||||||
if last_tx:
|
if last_tx:
|
||||||
return tuple(next(iter(_transactions)))
|
return tuple(next(iter(_transactions)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user