Skip to content

Commit

Permalink
Remove debugging force to "png"
Browse files Browse the repository at this point in the history
  • Loading branch information
CoolCat467 committed Nov 23, 2023
1 parent 074ff4d commit 105448f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/sanescansrv/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -375,8 +375,7 @@ def progress(current: int, total: int) -> None:
task_status.started()
last_time = time.perf_counter_ns()
filename = await trio.to_thread.run_sync(
preform_scan,
## fake_preform_scan,
preform_scan, # fake_preform_scan,
device_name,
out_type,
progress,
Expand Down Expand Up @@ -468,7 +467,6 @@ async def root_post() -> WerkzeugResponse:
# Validate input
img_format = data.get("img_format", "png")
device = APP_STORAGE["scanners"].get(data.get("scanner"), "none")
img_format = "png"

if img_format not in {"pnm", "tiff", "png", "jpeg"}:
return app.redirect("/")
Expand All @@ -480,8 +478,6 @@ async def root_post() -> WerkzeugResponse:

await nursery.start(preform_scan_async, device, img_format)

## filename = await preform_scan_async(device, img_format)
## return app.redirect(f"/{filename}")
return app.redirect("/scan-status")


Expand Down

0 comments on commit 105448f

Please sign in to comment.