removed dict
This commit is contained in:
@@ -48,7 +48,7 @@ class Products(db.Model):
|
|||||||
# ).all()
|
# ).all()
|
||||||
#
|
#
|
||||||
product_list = cls.query.all()
|
product_list = cls.query.all()
|
||||||
json_output = json.dumps(product_list.to_dict())
|
json_output = json.dumps(product_list)
|
||||||
print(json_output)
|
print(json_output)
|
||||||
logger.info(json_output)
|
logger.info(json_output)
|
||||||
return json_output
|
return json_output
|
||||||
|
|||||||
Reference in New Issue
Block a user