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

DO NOT MERGE: Major code rework #8

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

TrueSkrillor
Copy link
Contributor

This PR is work in progress and I just created it to let everyone know I'm on this. Have a look at the commits if you like.

def sanitize_fields(self):
fields = [ "center", "link1", "link2", "link3", "link4", "link5", "link6" ]
for field in fields:
self.__setattr__(field, self.__getattribute__(field).upper())
Copy link

Choose a reason for hiding this comment

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

I had a discussion with someone in #bug-reports that they found two transcriptions for separate images, with the same transcription, but different hashes.

I was not able to reproduce the hashes (and the no hash bug was found at this time, and more pressing) but my only guess is that there were extra white spaces in the center and/or link fields. I see that you've limited the field sizes appropriately to 1/7, but I'd suggest append .strip() to the field sanitation to prevent rejecting possibly valid transcriptions but just with extra spaces.

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.

2 participants