diff --git a/main.py b/main.py index 8d3b491..3b4b584 100644 --- a/main.py +++ b/main.py @@ -119,7 +119,13 @@ def get_message_text() -> str: no = NUMBER_EMOJIS[no] + " " else: no += ". " - text += str(no) + "" + deadlines[i]["name"] + text += str(no) + "" + + if deadlines[i].get("url"): + text += f"{deadlines[i]['name']}" + else: + text += deadlines[i]["name"] + text += " — " text += get_human_timedelta(deadlines[i]["time"]) text += f"\n("