Skip to content

Commit

Permalink
If no created timestamp is given, use the first report entry.
Browse files Browse the repository at this point in the history
  • Loading branch information
wsanchez committed Aug 14, 2014
1 parent a6db5f9 commit f6486e2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ims/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,10 @@ def __init__(
if report_entries is not None:
report_entries = tuple(sorted(report_entries))

if created is None:
for report_entry in report_entries:
created = report_entry.created

self.number = number
self.priority = priority
self.summary = summary
Expand Down

0 comments on commit f6486e2

Please sign in to comment.