Skip to content

Commit

Permalink
Merge pull request #156 from usegalaxy-au/dev
Browse files Browse the repository at this point in the history
Slack logging update and fix typo
  • Loading branch information
neoformit authored Sep 25, 2024
2 parents 54eb75b + dea81a7 commit 52690b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion webapp/home/templates/home/snippets/about/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h3 id="computational-partners">
</h3>

<p>
Galaxy Australia is underpined by computational resources provided by
Galaxy Australia is underpinned by computational resources provided by
<a href="https://www.aarnet.edu.au/" target="_blank">AARNet</a>,
<a href="https://ardc.edu.au/services/ardc-nectar-research-cloud/" target="_blank">ARDC Nectar Research Cloud</a>,
<a href="https://www.unimelb.edu.au/" target="_blank">the University of Melbourne</a>,
Expand Down
6 changes: 5 additions & 1 deletion webapp/utils/slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,15 @@ def post(message):
key = os.environ.get("SLACK_API_KEY")
user_id = os.environ.get("SLACK_MENTION_USER_ID")
channel_id = os.environ.get("SLACK_CHANNEL_ID")
message = ""

if key is None:
return
if user_id:
message = f'<@{user_id}> {message}'
message += f'<@{user_id}>'

message += f' [hostname: {os.getenv("HOSTNAME")}]'
message += f' {message}'

requests.post(
SLACK_URL,
Expand Down

0 comments on commit 52690b5

Please sign in to comment.