Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Illia-the-coder committed Jul 27, 2023
1 parent f280746 commit 7a2e144
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async def download_database(self, notion_token, database_id):
results = DW.query_database()
df = DW.extract_data_and_export_to_csv(results)
df = DW.preprocess_df(df)
df.to_csv('local_database.csv', index=False)
df.to_csv('resources/local_database.csv', index=False)

async def main(self, AccessAllDates=True, embed=False):
logging.info("Running main function...")
Expand Down Expand Up @@ -73,7 +73,7 @@ async def main(self, AccessAllDates=True, embed=False):
def start(self):
logging.info("Starting application...")
loop = asyncio.get_event_loop()
if not os.path.exists('local_database.csv'):
if not os.path.exists('resources/local_database.csv'):
loop.run_until_complete(self.download_database(self.notion_token, self.database_id))

self.client.start()
Expand Down

0 comments on commit 7a2e144

Please sign in to comment.