Skip to content

Commit

Permalink
Update generate.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ninehills authored Dec 19, 2023
1 parent f811530 commit 44ee203
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
## Posts\n""")
for issue in issues:
link = f"{ARTICLES_DIR}/{issue['number']}.md"
updated = issue['updatedAt'].split('T')[0]
updated = issue['createdAt'].split('T')[0]
labels = " ".join([f"`{label['name']}`" for label in issue['labels']])
f.write(f"- #{issue['number']} [{issue['title']}]({link}) {updated} {labels}\n")

Expand All @@ -44,7 +44,6 @@
f.write(f"> Author: **{issue['author']['login']}** \n")
f.write(f"> Labels: **{' '.join([label['name'] for label in issue['labels']])}** \n")
f.write(f"> Created: **{issue['createdAt']}** \n")
f.write(f"> Updated: **{issue['updatedAt']}** \n")
f.write(f"> Link and comments: <{issue['url']}> \n")
f.write("\n\n")
f.write(issue['body'])

0 comments on commit 44ee203

Please sign in to comment.