Printer Cut Code should be properly handled now in editing as well.

Worker will retry a failed job.
The worker was using the wrong queue name.
This commit is contained in:
2021-03-19 08:06:37 +05:30
parent dc6e7fe467
commit c29fde0cb0
4 changed files with 10 additions and 4 deletions

View File

@ -72,7 +72,7 @@ def update_section_printers():
values={"printer_id": select([printer.c.id]).where(section_printer.c.printer_name == printer.c.name)}
)
)
op.execute(printer.update(values={"cut_code": "\x1dV\x41\x03"}))
op.execute(printer.update(values={"cut_code": "\x1d\x56\x41\x03"}))
with op.batch_alter_table("section_printers") as batch_op:
batch_op.alter_column("section_id", nullable=False)
batch_op.drop_column("section_name")