Skip to content

Commit

Permalink
Merge pull request #103 from gengo/166052278-remove-captcha-validation
Browse files Browse the repository at this point in the history
Remove captcha on examples
  • Loading branch information
ryvasquez authored May 17, 2019
2 parents 8da92b8 + c7950d1 commit ea145d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions examples/updateTranslationJob.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,11 @@
debug=True
)

# Update a job that has an id of 42, and reject it, cite the reason,
# add a comment, and throw up some captcha stuff. See the docs for
# Update a job that has an id of 42, and reject it, cite the reason
# and add a comment. See the docs for
# more information pertaining to this method, it can do quite a bit. :)
print(gengo.updateTranslationJob(id=42, action={
'action': 'reject',
'reason': 'quality',
'comment': 'My grandmother does better.',
'captcha': 'bert'
}))
2 changes: 0 additions & 2 deletions examples/updateTranslationJobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,10 @@
'job_id': 630,
'reason': 'quality',
'comment': 'This sentence should be in the past tense',
'captcha': 'AAAA'
}, {
'job_id': 631,
'reason': 'quality',
'comment': 'This should have be capitalized',
'captcha': 'BBBB'
}],
})

Expand Down
2 changes: 1 addition & 1 deletion gengo/gengo.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ def get(self, **kwargs):
# NOTE: We pop() here because we don't want the extra data
# included and messing up our hash down the road.
base = re.sub(
'\{\{(?P<m>[a-zA-Z_]+)\}\}',
r'\{\{(?P<m>[a-zA-Z_]+)\}\}',
lambda m: '{0}'.format(kwargs.pop(m.group(1),
# In case of debugging needs
'no_argument_specified')),
Expand Down

0 comments on commit ea145d3

Please sign in to comment.