Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
[#234] Fixed error where transaction type was breaking the csv output
Browse files Browse the repository at this point in the history
  • Loading branch information
dalepotter authored and dalepotter committed Apr 30, 2015
1 parent 7b184fd commit dff77b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iati_datastore/iatilib/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def __init__(self, type_codes):
self.type_codes = [x.value for x in type_codes]

def __get__(self, obj, type=None):
return [t for t in obj.transactions if t.type.value in self.type_codes]
return [t for t in obj.transactions if t.type and t.type.value in self.type_codes]


class Participation(db.Model):
Expand Down

0 comments on commit dff77b9

Please sign in to comment.