added more docstrings and comments

This commit is contained in:
Tristan Lee
2022-03-14 19:38:33 -05:00
parent c3eab2f176
commit a3c859ec79
3 changed files with 94 additions and 65 deletions

View File

@@ -278,8 +278,8 @@ class ScraperController:
self.session.configure(bind=self.engine)
def reset_db(self):
"""Drop all data from the SQLAlchemy database.
"""
mapper_registry.metadata.drop_all(bind=self.engine)
self.connect_to_db(self.engine)
self.connect_to_db(self.engine)