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

Filter dummy ducks while getting opponents #188

Merged
merged 3 commits into from Feb 4, 2020

Conversation

alschmiedt
Copy link
Collaborator

Filter dummy ducks before returning from opponents.

Comment on lines 168 to 169
logging.info("entries_to_duck_info : Dummy ducks should be filtered earlier" +
"on");
Copy link
Contributor

Choose a reason for hiding this comment

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

This seems like debugging info, should be removed

Comment on lines 63 to 64
if e not in opponent_entries and e.key != user_entry.key and
e.has_duck == True]
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of filtering afterward, you can add to query. rank.py L123 has example. It can be added because its an equality check.

@alschmiedt alschmiedt merged commit 4edc013 into google:pond-multi Feb 4, 2020
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

2 participants