JasperVanDenBosch / niprov

provenance for neuroimaging data
BSD 3-Clause "New" or "Revised" License
9 stars 0 forks source link

JsonFile repository must check if subject field exists in record before checking its value #29

Closed JasperVanDenBosch closed 9 years ago

JasperVanDenBosch commented 9 years ago
  File "/home/jasper/Projects/niprov/niprov/views.py", line 18, in subject
    return {'images':repository.bySubject(subj)}
  File "/home/jasper/Projects/niprov/niprov/jsonfile.py", line 127, in bySubject
    records = [f for f in all if f['subject']==subject]
KeyError: 'subject'