Test_update v0.951
This commit is contained in:
Binary file not shown.
@@ -41,6 +41,26 @@ def projectors_list(*, get_conn, projector_kit_types):
|
||||
"""
|
||||
)
|
||||
rows = cur.fetchall()
|
||||
total_items = len(rows)
|
||||
kits_count = 0
|
||||
projectors_count = 0
|
||||
tv_count = 0
|
||||
boards_count = 0
|
||||
interactive_display_count = 0
|
||||
for row in rows:
|
||||
kit_type = (row[2] or "").strip().lower()
|
||||
if kit_type == "kit":
|
||||
kits_count += 1
|
||||
projectors_count += 1
|
||||
boards_count += 1
|
||||
elif kit_type == "projector":
|
||||
projectors_count += 1
|
||||
elif kit_type == "board":
|
||||
boards_count += 1
|
||||
elif kit_type == "tv":
|
||||
tv_count += 1
|
||||
elif kit_type == "display":
|
||||
interactive_display_count += 1
|
||||
cur.execute("SELECT id, name FROM cabinets ORDER BY name")
|
||||
cabinets = cur.fetchall()
|
||||
cur.execute(
|
||||
@@ -69,6 +89,12 @@ def projectors_list(*, get_conn, projector_kit_types):
|
||||
kit_types=projector_kit_types,
|
||||
kit_type_labels=dict(projector_kit_types),
|
||||
projector_brands=projector_brands,
|
||||
total_items=total_items,
|
||||
kits_count=kits_count,
|
||||
projectors_count=projectors_count,
|
||||
tv_count=tv_count,
|
||||
boards_count=boards_count,
|
||||
interactive_display_count=interactive_display_count,
|
||||
)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user