mirror of
https://github.com/developersIndia/deviras.git
synced 2024-11-08 13:42:34 +05:30
use bold instead of code
This commit is contained in:
parent
0b4f522426
commit
201eeace96
@ -68,7 +68,7 @@ def update_wiki(reddit, wikipage, posts):
|
||||
# Add the posts for this year
|
||||
for post in posts_by_year[year]:
|
||||
formatted_date = datetime.strptime(post['created_at'], '%Y-%m-%dT%H:%M:%S').strftime('%d %b, %Y')
|
||||
content += f"- `{formatted_date}` [`{post['title']}`]({post['url']})\n\n"
|
||||
content += f"- `{formatted_date}` [**{post['title']}**]({post['url']})\n\n"
|
||||
|
||||
# given a wiki link, update the wiki page with new markdown
|
||||
wikipage = reddit.subreddit(sub).wiki[wikipage]
|
||||
|
Loading…
Reference in New Issue
Block a user