Skip to content

Commit

Permalink
fix(generate): reverse order
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Dec 29, 2023
1 parent 6ca03f0 commit 630fc5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/runners/generate/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
)

# Sort posts by date, such that we have the newst posts first, so that when we loop through them we can give them an id based on their date
posts.sort(key=lambda x: datetime.strptime(x["date"], "%d/%m/%Y"), reverse=True)
posts.sort(key=lambda x: datetime.strptime(x["date"], "%d/%m/%Y"), reverse=False)

for i, post in enumerate(posts):
post["id"] = i + 1
Expand Down

0 comments on commit 630fc5d

Please sign in to comment.