Skip to content

Commit

Permalink
Simplify gef scraper logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael-Wojdak committed Feb 11, 2025
1 parent 65198fa commit e379434
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Document(SQLModel, table=True):
# SQLite database URL
sqlite_url = "sqlite:///" + DB_PATH
print(sqlite_url)
engine = create_engine(sqlite_url, echo=True)
engine = create_engine(sqlite_url)#, echo=True)

def create_db_and_tables():
SQLModel.metadata.create_all(engine)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ def setup_logging():
logging.basicConfig(
level=logging.INFO, format="%(asctime)s - %(levelname)s - %(message)s"
)
#logging.getLogger("sqlalchemy.engine").setLevel(logging.INFO) # Uncomment to enable detailed sql logs

def get_project_ids_from_csv(path, interested_years=None) -> list[str]:
project_ids = []
Expand Down

0 comments on commit e379434

Please sign in to comment.