Skip to content

Commit

Permalink
Update abstra-runtimes-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
abstra-bot committed Apr 26, 2023
1 parent e8e0a46 commit e0a3365
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions abstra_runtimes/overloads.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ def redirect(url, query_params=params):
def get_query_params():
return params

def alert(message, severity="info"):
if severity not in ["info", "warn", "error", "success"]:
severity = "info"

broker.send({"type": "alert", "message": message, "severity": severity})

abstra_dashes.get_user = get_user
abstra_dashes.redirect = redirect
abstra_dashes.get_query_params = get_query_params
abstra_dashes.alert = alert

0 comments on commit e0a3365

Please sign in to comment.