From cad0ad94b36510439330208d7adf497ecd979186 Mon Sep 17 00:00:00 2001 From: Yariv Menachem Date: Mon, 6 Jan 2025 16:24:00 +0200 Subject: [PATCH] remove manipulation for country --- src/telegram_handler/telegram_default_handler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/telegram_handler/telegram_default_handler.py b/src/telegram_handler/telegram_default_handler.py index 02bcf35..3980f81 100644 --- a/src/telegram_handler/telegram_default_handler.py +++ b/src/telegram_handler/telegram_default_handler.py @@ -53,16 +53,16 @@ class TelegramDefaultHandler(TelegramHandler): site_names = [site.name for site in self.sites_to_scrap] site_names_print = ", ".join(site_names) - locations = [location + ", Israel" for location in user.cities] + # locations = [location + ", Israel" for location in user.cities] await self.telegram_bot.send_text(chat_id, f"Start scarping: {site_names_print}") filtered_out_jobs, jobs = scrape_jobs( site_name=self.sites_to_scrap, user=user, search_term=user.position.value, - locations=locations, + locations=user.cities, results_wanted=200, - hours_old=48, + hours_old=int(user.job_age), filter_by_title=user.title_filters, country_indeed='israel' )