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

Minor fixes to some of the info generating code #2

Merged
merged 3 commits into from
Dec 8, 2016
Merged

Minor fixes to some of the info generating code #2

merged 3 commits into from
Dec 8, 2016

Conversation

lokal-profil
Copy link
Member

More info in the individual commit messages.

You can likely not just merge this since I made the changes in the .py file not the .ipynb file. But manually adding the changes to the notebook should be fairly painless.

Ensures trailing spaces don't affect punctuation.
Ensures second route to a valid description is punctuated and
that keywords are prefixed with "Nyckelord".
I am worried that there is a case where OK_to_upload is True
but no description is generated when:
"Beskrivning" is None
"Ort, foto" is not None
any of "Motivord", "Händelse / var närvarande vid" is None

If this scenario ever occurs then a message will be outputted to
the user. To make it more obviouse I've commented out some now
unneded print statements.
@mattiasostmar mattiasostmar merged commit 3d489f3 into Wikimedia-Sverige:master Dec 8, 2016
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