rivals_field_fix

dev
AlexP077 2 years ago
parent 55425314b5
commit 306afb45dd

@ -36,7 +36,7 @@ class LayerService:
@staticmethod
def count_post_pvz(point):
point.rival_post_cnt = models.Post_and_pvz.objects.filter(
category__name="Постамат", include_in_ml=True,
category__name="Постаматы прочих сетей", include_in_ml=True,
wkt__distance_lt=(point.geometry, Distance(m=DEFAULT_PLACEMENT_POINT_UPDATE_RADIUS))).count()
point.rival_pvz_cnt = models.Post_and_pvz.objects.filter(
category__name="ПВЗ", include_in_ml=True,

Loading…
Cancel
Save