Skip to content

Commit

Permalink
Update sync_status_readme.py exclude readme and template
Browse files Browse the repository at this point in the history
  • Loading branch information
DerickIT authored Aug 26, 2024
1 parent 4d42360 commit 9b0ddf5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sync_status_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,10 @@ def check_weekly_status(user_status, date, user_tz):


def get_all_user_files():
exclude_prefixes = ('template', 'readme')
return [f[:-len(FILE_SUFFIX)] for f in os.listdir('.')
if f.endswith(FILE_SUFFIX) and not f.startswith('Template')]
if f.lower().endswith(FILE_SUFFIX.lower())
and not f.lower().startswith(exclude_prefixes)]


def update_readme(content):
Expand Down

0 comments on commit 9b0ddf5

Please sign in to comment.