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

Allow multiple primary tags #25

Merged
merged 2 commits into from Jun 8, 2017
Merged

Allow multiple primary tags #25

merged 2 commits into from Jun 8, 2017

Conversation

lokal-profil
Copy link
Owner

@lokal-profil lokal-profil commented Jun 7, 2017

Multiple primary tags proved to not be unusual since two separate
class trees were often used. Allow for this but require them all to
be mapped in order to skip the others.

Also:

  • Removed one inappropriate primary_tag which is always unmapped.

Task: T167352

Multiple primary tags proved to not be unusual since two separate
class trees were often used. Allow for this but require them all to
be mapped in order to skip the others.

Also:
* Removed one inappropriate primary_tag which is always unmapped.
for tag in self.item_classes:
if tag != primary_tag:
Copy link
Owner Author

Choose a reason for hiding this comment

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

Dropped this since all() terminates at the first failure hence later primary tags should be added.

* item_classes: (human construct, building, castle) returns [castle]
* item_classes: (human construct, building, church) returns []
* item_classes: (building, castle, animal, chicken) returns
[runestone, chicken]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why does it return runestone instead of castle?

Copy link
Owner Author

Choose a reason for hiding this comment

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

Because I am sloppy =)

Fixed.

@lokal-profil lokal-profil merged commit eac5331 into master Jun 8, 2017
@lokal-profil lokal-profil deleted the primary_tags branch June 8, 2017 11:47
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