Disable SQLAlchemy Echoing

This commit is contained in:
Liam Steckler 2024-01-31 21:36:32 -08:00
parent e099d3e240
commit eb1785d56c

2
scl.py
View file

@ -120,7 +120,7 @@ class SclOutage(Base):
return f"SclOutage(scl_outage_id={self.scl_outage_id!r}, most_recent_post_id={self.most_recent_post_id!r}, initial_post_id={self.initial_post_id!r}, map_media_post_id={self.map_media_post_id!r}, last_updated_time={self.last_updated_time!r}, no_longer_in_response_time={self.no_longer_in_response_time!r}), start_time={self.start_time!r}), num_people={self.num_people!r}), max_num_people={self.max_num_people!r})" return f"SclOutage(scl_outage_id={self.scl_outage_id!r}, most_recent_post_id={self.most_recent_post_id!r}, initial_post_id={self.initial_post_id!r}, map_media_post_id={self.map_media_post_id!r}, last_updated_time={self.last_updated_time!r}, no_longer_in_response_time={self.no_longer_in_response_time!r}), start_time={self.start_time!r}), num_people={self.num_people!r}), max_num_people={self.max_num_people!r})"
engine = create_engine("sqlite:///scl.db", echo=True) engine = create_engine("sqlite:///scl.db")
Base.metadata.create_all(engine) Base.metadata.create_all(engine)
with Session(engine) as session: with Session(engine) as session: