From 433e08cdf9acfc6a093329bd3c00d67a8bdc7351 Mon Sep 17 00:00:00 2001 From: Joan Date: Mon, 7 Oct 2024 14:08:01 +0200 Subject: [PATCH] Fixed max distance --- wallamanta/walladb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wallamanta/walladb.py b/wallamanta/walladb.py index ae1bf7f..e6471de 100644 --- a/wallamanta/walladb.py +++ b/wallamanta/walladb.py @@ -321,8 +321,8 @@ def add_product(product): condition = 'all' product_name = product.get('product_name').lower() distance = product.get('distance', 0) - if int(distance) > 1000000000: - distance = 1000000000 + if int(distance) > 4000: + distance = 4000 latitude = product.get('latitude', constants.LATITUDE) longitude = product.get('longitude', constants.LONGITUDE) min_price = product.get('min_price')