|
|
|
@ -143,7 +143,7 @@ class PointService:
|
|
|
|
).count()
|
|
|
|
).count()
|
|
|
|
point.target_cnt_ao_mean = qs[0].target_cnt_ao_mean
|
|
|
|
point.target_cnt_ao_mean = qs[0].target_cnt_ao_mean
|
|
|
|
point.rival_post_cnt = models.Post_and_pvz.objects.filter(
|
|
|
|
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=(origin, Distance(m=DEFAULT_PLACEMENT_POINT_UPDATE_RADIUS))).count()
|
|
|
|
wkt__distance_lt=(origin, Distance(m=DEFAULT_PLACEMENT_POINT_UPDATE_RADIUS))).count()
|
|
|
|
point.rival_pvz_cnt = models.Post_and_pvz.objects.filter(
|
|
|
|
point.rival_pvz_cnt = models.Post_and_pvz.objects.filter(
|
|
|
|
category__name="ПВЗ", include_in_ml=True,
|
|
|
|
category__name="ПВЗ", include_in_ml=True,
|
|
|
|
|