Skip to content

Commit

Permalink
prevent zero entries in T
Browse files Browse the repository at this point in the history
  • Loading branch information
Erik Bernhardsson committed Mar 22, 2018
1 parent 99a40e8 commit 4b3674d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convoys/__init__.py
Expand Up @@ -27,7 +27,7 @@ def get_arrays(groups, data, t_converter):
G, B, T = [], [], []
group2j = dict((group, j) for j, group in enumerate(groups))
for group, created_at, converted_at, now in data:
if converted_at is not None and converted_at < created_at:
if converted_at is not None and converted_at <= created_at:
print('created at', created_at, 'but converted at', converted_at)
continue
if now < created_at:
Expand Down

0 comments on commit 4b3674d

Please sign in to comment.