Small problem with next step handler. Changed db with todays_product bool

This commit is contained in:
Kellermann
2022-05-28 11:44:23 +02:00
parent 9bdd4a9b71
commit 1da29dab81
4 changed files with 144 additions and 13 deletions

View File

@@ -49,10 +49,11 @@ class Product(Base):
title = Column(String(5000))
description = Column(String(5000))
date = Column(DateTime)
todays_product = Column(Boolean)
def __repr__(self):
return "<Product(product_id='%s', price='%s', image_link='%s', title='%s', description='%s', date='%s')>" % (
self.product_id, self.price, self.image_link, self.title, self.description, self.date)
return "<Product(product_id='%s', price='%s', image_link='%s', title='%s', description='%s', date='%s', todays_product='%s')>" % (
self.product_id, self.price, self.image_link, self.title, self.description, self.date, self.todays_product)
# Create all tables by issuing CREATE TABLE commands to the DB.