Skip to content

Commit

Permalink
Fix GITHUB_RUN_ID error
Browse files Browse the repository at this point in the history
  • Loading branch information
origamiofficial committed Apr 2, 2024
1 parent 955b19c commit cb884be
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@
"{title}\n\n"
"Date: {day} {month} {year}\n\n"
"{description}\n\n"
"https://www.aiub.edu{link} | {GITHUB_RUN_ID}"
"https://www.aiub.edu{link} | {gh_run_id}"
)

# Message format for edited notices
EDITED_NOTICE_MESSAGE_FORMAT = (
"[EDITED] {title}\n\n"
"Date: {day} {month} {year}\n\n"
"{description}\n\n"
"https://www.aiub.edu{link} | {GITHUB_RUN_ID}"
"https://www.aiub.edu{link} | {gh_run_id}"
)

# SQLite database information
Expand Down Expand Up @@ -252,7 +252,8 @@ def send_telegram_message(message):
month=month,
year=year,
description=description,
link=link
link=link,
gh_run_id=GITHUB_RUN_ID
)
send_telegram_message(message)
else:
Expand All @@ -274,7 +275,8 @@ def send_telegram_message(message):
month=month,
year=year,
description=description,
link=link
link=link,
gh_run_id=GITHUB_RUN_ID
)
send_telegram_message(message)

Expand Down

0 comments on commit cb884be

Please sign in to comment.