Skip to content

Commit

Permalink
Merge pull request #659 from Francoo86/fixes
Browse files Browse the repository at this point in the history
Fix for API not recognizing target_lang correctly
  • Loading branch information
zyddnys authored Jun 26, 2024
2 parents 3ef8958 + 5e5b80a commit 2f46d8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion manga_translator/manga_translator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1284,7 +1284,7 @@ def format_translate(self, ctx: Context, return_image: bool):
return web.json_response({'details': results, 'img': img})

class PostSchema(Schema):
target_language = fields.Str(required=False, validate=lambda a: a.upper() in VALID_LANGUAGES)
target_lang = fields.Str(required=False, validate=lambda a: a.upper() in VALID_LANGUAGES)
detector = fields.Str(required=False, validate=lambda a: a.lower() in DETECTORS)
ocr = fields.Str(required=False, validate=lambda a: a.lower() in OCRS)
inpainter = fields.Str(required=False, validate=lambda a: a.lower() in INPAINTERS)
Expand Down

0 comments on commit 2f46d8c

Please sign in to comment.