Skip to content

Commit

Permalink
#624 fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Kolyada committed Jun 7, 2024
1 parent f64e383 commit 0c5ae2e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions manga_translator/server/web_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ async def run_async(request):
# return web.json_response({'state': 'error'})
else:
os.makedirs(f'result/{task_id}/', exist_ok=True)
img.save(f'result/{task_id}/input.png')
img.save(f'result/{task_id}/input.jpg')
QUEUE.append(task_id)
now = time.time()
TASK_DATA[task_id] = {
Expand Down Expand Up @@ -437,7 +437,7 @@ async def submit_async(request):
}
elif task_id not in TASK_DATA or task_id not in TASK_STATES:
os.makedirs(f'result/{task_id}/', exist_ok=True)
img.save(f'result/{task_id}/input.png')
img.save(f'result/{task_id}/input.jpg')
QUEUE.append(task_id)
TASK_STATES[task_id] = {
'info': 'pending',
Expand All @@ -464,7 +464,7 @@ async def manual_translate_async(request):
task_id = secrets.token_hex(16)
print(f'New `manual-translate` task {task_id}')
os.makedirs(f'result/{task_id}/', exist_ok=True)
img.save(f'result/{task_id}/input.png')
img.save(f'result/{task_id}/input.jpg')
now = time.time()
QUEUE.append(task_id)
# TODO: Add form fields to manual translate website
Expand Down

0 comments on commit 0c5ae2e

Please sign in to comment.