mirror of
https://github.com/RoboSats/robosats.git
synced 2025-01-18 12:11:35 +00:00
Compute percentile over orders of the same type (#201)
This commit is contained in:
parent
3ae6087a87
commit
56bc602d34
@ -147,7 +147,7 @@ premium_percentile = {}
|
||||
def compute_premium_percentile(order):
|
||||
|
||||
queryset = Order.objects.filter(
|
||||
currency=order.currency, status=Order.Status.PUB).exclude(id=order.id)
|
||||
currency=order.currency, status=Order.Status.PUB, type=order.type).exclude(id=order.id)
|
||||
|
||||
print(len(queryset))
|
||||
if len(queryset) <= 1:
|
||||
|
Loading…
Reference in New Issue
Block a user