Skip to content
Snippets Groups Projects
Commit 30a19b94 authored by Alexander Pace's avatar Alexander Pace
Browse files

Two changes:

Fixed LVAlert server for "test" container, and fixed 500 server error
when sorting p_astro list for the public event page. I think this

https://stackoverflow.com/questions/27776026/lambda-arguments-unpack-error

fixes it.
parent 89bd4d68
No related branches found
No related tags found
1 merge request!29Python3
Pipeline #90147 passed
......@@ -53,13 +53,6 @@ SEND_XMPP_ALERTS = True
SEND_PHONE_ALERTS = False
SEND_EMAIL_ALERTS = False
# Define correct LVAlert settings
LVALERT_OVERSEER_INSTANCES = [
{
"lvalert_server": "lvalert-playground.cgca.uwm.edu",
"listen_port": 8001,
},
]
# Define correct LVAlert settings
LVALERT_OVERSEER_INSTANCES = [
......
......@@ -233,7 +233,7 @@ class SupereventPublic(DisplayFarMixin, ListView):
("BBH", voe.prob_bbh),
("Terrestrial", voe.prob_terrestrial),
("MassGap", voe.prob_mass_gap)]
pastro_values.sort(reverse=True, key=lambda a, b: b)
pastro_values.sort(reverse=True, key=lambda p_a: p_a[1])
sourcelist = []
for key, value in pastro_values:
if value > 0.01:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment