Skip to content

Commit

Permalink
BUG FIX for special case anomalies not writing to DB
Browse files Browse the repository at this point in the history
  • Loading branch information
BradleySappington committed Jan 18, 2024
1 parent a4be366 commit 03ed573
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jwql/website/apps/jwql/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ def update_anomaly_table(self, rootfileinfo, user, anomaly_choices):
A list of anomalies that are to be flagged (e.g.
``['snowball', 'crosstalk']``)
"""
anomaly_choices = list(map(str.lower, anomaly_choices))
default_dict = {'flag_date': datetime.datetime.now(),
'user': user}
for anomaly in Anomalies.get_all_anomalies():
Expand Down

0 comments on commit 03ed573

Please sign in to comment.