#6 Added deadline links (v1.1)
This commit is contained in:
parent
0a0e5bc1ab
commit
8e45cdb37d
1 changed files with 7 additions and 1 deletions
8
main.py
8
main.py
|
@ -119,7 +119,13 @@ def get_message_text() -> str:
|
|||
no = NUMBER_EMOJIS[no] + " "
|
||||
else:
|
||||
no += ". "
|
||||
text += str(no) + "<b>" + deadlines[i]["name"]
|
||||
text += str(no) + "<b>"
|
||||
|
||||
if deadlines[i].get("url"):
|
||||
text += f"<a href='{deadlines[i]['url']}'>{deadlines[i]['name']}</a>"
|
||||
else:
|
||||
text += deadlines[i]["name"]
|
||||
|
||||
text += "</b> — "
|
||||
text += get_human_timedelta(deadlines[i]["time"])
|
||||
text += f"\n(<a href='{generate_link(deadlines[i]['name'], deadlines[i]['time'])}'>"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue