Skip to content

Commit

Permalink
Merge pull request #11 from DerickIT/patch-11
Browse files Browse the repository at this point in the history
Update sync_status_readme.py  exclude readme and template
  • Loading branch information
luffythink authored Aug 29, 2024
2 parents 6e5020d + 9b0ddf5 commit 78d2e47
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 78d2e47

Please sign in to comment.