Skip to content

Commit

Permalink
Fixing linting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dmcollom committed May 3, 2021
1 parent ad9cff9 commit 78a97e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tom_superevents/templatetags/superevent_extras.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ def alert_table(context):
'timestamp': str(parse(alert['timestamp']).date()),
'from': alert['parsed_message']['from'].split(' at ', 1)[0],
'subject': alert['parsed_message']['subject'].split(':', 1)[-1]
} for alert in context['superevent_data']['alerts'][:8] if alert['parsed_message'].get('title', None) != 'GCN/LVC NOTICE']
} for alert in context['superevent_data']['alerts'][:8]
if alert['parsed_message'].get('title', None) != 'GCN/LVC NOTICE']
superevent_alert = None
for alert in context['superevent_data']['alerts']:
if alert['parsed_message'].get('title', None) == 'GCN/LVC NOTICE':
Expand Down

0 comments on commit 78a97e2

Please sign in to comment.