-
Notifications
You must be signed in to change notification settings - Fork 0
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 indexes #18
base: master
Are you sure you want to change the base?
Fix indexes #18
Conversation
@mamico @luca-bellenghi ping ;) |
terms.append(SimpleTerm(value=key, token=key, title=value)) | ||
else: | ||
logger.error("invalid tipologia bando %s", tipologia) | ||
terms = [SimpleTerm(value=x, token=x, title=x) for x in values if x] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if editors want to have a term with non ascii chars?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it a problem in python3?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do not use key|value pairs in fields.
With this change we can store metadata with human-readable strings and not ids.