Esempio n. 1
0
 def __init__(self, name, url, price=None, _id=None):
     self.name = name
     self.url = url
     store = Store.find_by_url(url)
     self.tag_name = store.tag_name
     self.query = store.query
     self.price = None if price is None else price
     self._id = uuid.uuid4().hex if _id is None else _id
Esempio n. 2
0
 def __post_init__(self):
     store = Store.find_by_url(self.url)
     self.tag_name = store.tag_name
     self.query = store.query