Pending changes update

This commit is contained in:
Kifixo
2024-02-28 20:33:44 +01:00
parent 6032b33874
commit f2416ee35a
5 changed files with 84 additions and 39 deletions

View File

@@ -3,7 +3,8 @@ import string
class ItemMonitor:
def __init__(self, search_query, latitude, longitude, max_distance,
condition, min_price, max_price, title_exclude,
description_exclude, title_must_include, description_must_include):
description_exclude, title_must_include, description_must_include,
title_first_word_exclude):
self._search_query = search_query
self._latitude = latitude
self._longitude = longitude
@@ -15,6 +16,7 @@ class ItemMonitor:
self._description_exclude = description_exclude
self._title_must_include = title_must_include
self._description_must_include = description_must_include
self._title_first_word_exclude = title_first_word_exclude
@classmethod
def load_from_json(cls, json_data):
@@ -29,7 +31,8 @@ class ItemMonitor:
json_data['title_exclude'],
json_data['description_exclude'],
json_data['title_must_include'],
json_data['description_must_include']
json_data['description_must_include'],
json_data['title_first_word_exclude']
)
def get_search_query(self):
@@ -63,4 +66,7 @@ class ItemMonitor:
return self._title_must_include
def get_description_must_include(self):
return self._description_must_include
return self._description_must_include
def get_title_first_word_exclude(self):
return self._title_first_word_exclude