Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
rb81 committed Jul 19, 2024
1 parent 08fc271 commit 0ded150
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions stars.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,13 +156,9 @@ def update_github_lists(github_token, categories, starred_repos, repo_category_m

changes_made = False

output_folder = os.path.expanduser(args.output)
os.makedirs(output_folder, exist_ok=True)

with tqdm(total=len(category_repos), desc="Updating GitHub lists") as pbar:
for category, repos in category_repos.items():
file_name = f"{clean_filename(category)}.md"
local_file_path = os.path.join(output_folder, file_name)

if not repos:
# If category is empty, delete the file if it exists in the repo
Expand Down

0 comments on commit 0ded150

Please sign in to comment.