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

Fix double empty entry of first term in vocabulary #8

Closed
wants to merge 1 commit into from

Conversation

tomgross
Copy link
Contributor

No description provided.

# play nice with collective.solr I18NFacetTitlesVocabularyFactory
# and probably others
if res and res[0] != ('', ''):
res.insert(0, ('', ''))
res.sort(key=operator.itemgetter(1), cmp=compare)
items = [SimpleTerm(key, key, value) for key, value in res]
items = set([SimpleTerm(key, key, value) for key, value in res])
Copy link
Member

Choose a reason for hiding this comment

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

@tomgross I'm afraid that this will unsort the items.

@avoinea
Copy link
Member

avoinea commented May 15, 2018

Merged to develop branch. Moving to #9

@avoinea avoinea closed this May 15, 2018
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.

3 participants