Skip to content

Commit

Permalink
chore(rss): sort data files alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
wdhdev authored Jan 16, 2024
1 parent 3c00203 commit eff34d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/rss/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ def main():
print("Starting to generate RSS feed...")
add_entry(fg, END_ENTRY)

for filename in os.listdir(DATA_DIR):
# Get the list of files and sort them
data_files = sorted(os.listdir(DATA_DIR))

for filename in data_files:
if not filename.endswith(".md"):
continue
if filename in [START_ENTRY, END_ENTRY]:
Expand Down

0 comments on commit eff34d0

Please sign in to comment.