mirror of
https://github.com/Sea-Haven-Industries/procurement-ingest.git
synced 2026-10-01 10:03:13 +00:00
Apply ruff formatting to web UI handlers
This commit is contained in:
parent
57bcec5a2e
commit
e60774a65c
2 changed files with 2 additions and 2 deletions
|
|
@ -196,7 +196,7 @@ def render_po_list(purchase_orders):
|
|||
processed = esc((po.get("processed_at") or "")[:16])
|
||||
|
||||
rows += f"""
|
||||
<tr style="border-bottom:1px solid #f1f5f9;cursor:pointer;" onclick="window.location={esc(json.dumps(f'/po?id={po.get("po_number", "")}'), quote=True)}">
|
||||
<tr style="border-bottom:1px solid #f1f5f9;cursor:pointer;" onclick="window.location={esc(json.dumps(f"/po?id={po.get("po_number", "")}"), quote=True)}">
|
||||
<td style="padding:12px;font-weight:500;color:#3b82f6;">{po_number}</td>
|
||||
<td style="padding:12px;">{supplier}</td>
|
||||
<td style="padding:12px;font-weight:500;">{site_code}</td>
|
||||
|
|
|
|||
|
|
@ -174,7 +174,7 @@ def render_work_orders_list(work_orders):
|
|||
updated = esc((wo.get("updated_at") or "")[:16])
|
||||
|
||||
rows += f"""
|
||||
<tr style="border-bottom:1px solid #f1f5f9;cursor:pointer;" onclick="window.location={esc(json.dumps(f'/wo?id={wo.get("work_order_id", "")}'), quote=True)}">
|
||||
<tr style="border-bottom:1px solid #f1f5f9;cursor:pointer;" onclick="window.location={esc(json.dumps(f"/wo?id={wo.get("work_order_id", "")}"), quote=True)}">
|
||||
<td style="padding:12px;font-weight:500;color:#3b82f6;">{wo_id}</td>
|
||||
<td style="padding:12px;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;">{desc}</td>
|
||||
<td style="padding:12px;">{site}</td>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue