Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added excluded ventures to teams #188

Merged
merged 4 commits into from
Jun 23, 2014

Conversation

mkurek
Copy link
Contributor

@mkurek mkurek commented Jun 13, 2014

added excluded ventures to teams

@@ -313,6 +317,11 @@ def add_subcosts(sstart, send, cost, percentage):
add_subcosts(start, end, 0, percentage)
return result

def _exclude_ventures(self, team, ventures):
if team.excluded_ventures.count():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is not need count. team.excluded_ventures return empty list if no venture there.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

team.excluded_ventures is RelatedManager, so casting it to bool will always return True (even if there is no excluded_ventures).

@coveralls
Copy link

Coverage Status

Coverage increased (+0.1%) when pulling 55751ed on mkurek:feature/team-venture-exclude into 2c49a6e on allegro:develop.

kula1922 added a commit that referenced this pull request Jun 23, 2014
@kula1922 kula1922 merged commit 2c8c6af into allegro:develop Jun 23, 2014
@mkurek mkurek deleted the feature/team-venture-exclude branch July 2, 2014 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants