from CommonOperations import convertDateForPostgres class Game: def __init__(self, fs_id, url, discount_end_date, image_url, price_discounted_f, price_has_discount_b, price_discount_percentage_f, image_url_h2x1_s, publisher, title, nsuid_txt, product_catalog_description_s, price_regular_f, media_type): self.fs_id = fs_id self.url = url self.discount_end_date = convertDateForPostgres(discount_end_date) self.thumbnail = image_url self.thumbnail_banner = image_url_h2x1_s self.price_regular = price_regular_f self.price_discounted = price_discounted_f self.price_discount_percentage = price_discount_percentage_f self.price_has_discount = price_has_discount_b self.publisher = publisher self.title = title #sorting_title ? self.nsuid = nsuid_txt #can be multiple self.catalog_description = product_catalog_description_s self.media_type = media_type def __str__(self): return f"{self.title}({self.price_discounted})"