Skip to content
Permalink
Browse files

Remove "Repo.active" temporary handling

  • Loading branch information
menegazzo committed Mar 13, 2016
1 parent 9a5049a commit 43c84ea5ae50ba6a1439646fc7cce0774ba606b7
Showing with 3 additions and 4 deletions.
  1. +3 −1 .coveragerc
  2. +0 −3 travispy/entities/repo.py
@@ -2,4 +2,6 @@
source = travispy

[report]
omit = */_tests/*
omit =
*/_tests/*
*/conftest.py
@@ -70,7 +70,4 @@ def last_build(self):
@classmethod
def find_one(cls, session, entity_id, **kwargs):
result = super(Repo, cls).find_one(session, entity_id, **kwargs)
# TODO: remove once active is properly synced and exposed by api.
if result is not None and not hasattr(result, 'active'):
setattr(result, 'active', bool(result.last_build_id))
return result

0 comments on commit 43c84ea

Please sign in to comment.
You can’t perform that action at this time.