Skip to content

Commit

Permalink
revert to d980bcb
Browse files Browse the repository at this point in the history
  • Loading branch information
grigoriev-semyon authored Feb 8, 2024
1 parent 2a83905 commit 02e99a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions timetable/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,8 @@ def download_pages_to_db():
delete from "STG_TIMETABLE".raw_html;
""")
logging.info("raw_html is empty")
with sql_engine.connect() as conn:
data.to_sql('raw_html', conn.connection, schema='STG_TIMETABLE', if_exists='append', index=False)
data.to_sql('raw_html', sql_engine, schema='STG_TIMETABLE', if_exists='append', index=False)
logging.info("raw_html is full")

return Dataset("STG_TIMETABLE.raw_html")


Expand Down

0 comments on commit 02e99a5

Please sign in to comment.