Commit ed9426d8 authored by Brandon Piotrzkowski's avatar Brandon Piotrzkowski
Browse files

Fix bug where .png files are grabbed when getting p_astro and em_bright

parent 273abbdd
...@@ -85,9 +85,9 @@ def main_dict(gracedb_id, client): ...@@ -85,9 +85,9 @@ def main_dict(gracedb_id, client):
p_astrofiles = [] p_astrofiles = []
for file in superevent_files: for file in superevent_files:
if em_brightfilename in file: if em_brightfilename in file and not '.png' in file:
em_brightfiles.append(file) em_brightfiles.append(file)
elif p_astrofilename in file: elif p_astrofilename in file and not '.png' in file:
p_astrofiles.append(file) p_astrofiles.append(file)
if em_brightfiles: if em_brightfiles:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment