Skip to content

Commit

Permalink
scraper create folders if not present
Browse files Browse the repository at this point in the history
  • Loading branch information
rithviknishad committed Feb 27, 2024
1 parent bfc0f04 commit 695294e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scraper/src/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ def save_user_data(self, user, data):

def merge_data(self):
self.log.info("Updating data")
Path(self.data_dir).mkdir(parents=True, exist_ok=True)
for user in self.data.keys():
self.log.debug(f"Merging user data for {user}")
old_data = self.load_user_data(user)
Expand Down

0 comments on commit 695294e

Please sign in to comment.