From 728c79c08cee2c61549fd47a73eb268dd7369177 Mon Sep 17 00:00:00 2001 From: ehsang Date: Sun, 15 Sep 2024 16:32:47 +0330 Subject: [PATCH] fresh product changes --- say/crawler/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/say/crawler/__init__.py b/say/crawler/__init__.py index 25fa7626..7dfb733c 100644 --- a/say/crawler/__init__.py +++ b/say/crawler/__init__.py @@ -118,10 +118,9 @@ def __init__(self, url): def get_data(self, fresh, force=False): if self.dkp is None: return - # fresh products have different api - if fresh: + if fresh == False: url = self.API_URL_NOT_FRESH % self.dkp if force: r = requests.get(url)