mirror of
https://github.com/RoboSats/robosats.git
synced 2025-09-13 00:56:22 +00:00
Compute percentile over orders of the same type (#201)
This commit is contained in:
@ -147,7 +147,7 @@ premium_percentile = {}
|
|||||||
def compute_premium_percentile(order):
|
def compute_premium_percentile(order):
|
||||||
|
|
||||||
queryset = Order.objects.filter(
|
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))
|
print(len(queryset))
|
||||||
if len(queryset) <= 1:
|
if len(queryset) <= 1:
|
||||||
|
|||||||
Reference in New Issue
Block a user