Adding UACDiameterRangemm

This commit is contained in:
Ian Roddis committed 2026-09-21 13:31:30 -03:00
1 parent d8db87c13e
commit 597cf68157
7 files changed
+36 -2

No files matched your search

+2
View File
@@ -13,6 +13,7 @@ _FIELDS = frozenset(
"ProductODmm",
"ProductODin",
"TBXThreadAttribute",
"UACDiameterRangemm",
}
)
@@ -26,6 +27,7 @@ SORT_COLUMNS = {
"ProductODmm": ImportedPart.ProductODmm,
"ProductODin": ImportedPart.ProductODin,
"TBXThreadAttribute": ImportedPart.TBXThreadAttribute,
"UACDiameterRangemm": ImportedPart.UACDiameterRangemm,
}
+1
View File
@@ -19,3 +19,4 @@ class ImportedPart(Base):
ProductODmm: Mapped[str | None] = mapped_column(nullable=True, default=None)
ProductODin: Mapped[str | None] = mapped_column(nullable=True, default=None)
TBXThreadAttribute: Mapped[str | None] = mapped_column(nullable=True, default=None)
UACDiameterRangemm: Mapped[str | None] = mapped_column(nullable=True, default=None)
+1
View File
@@ -12,6 +12,7 @@ class ImportedPartRead(BaseModel):
ProductODmm: str | None
ProductODin: str | None
TBXThreadAttribute: str | None
UACDiameterRangemm: str | None
class ImportedPartConfigRead(BaseModel):
@@ -12,6 +12,7 @@
{{ sort_th("ProductODmm", "OD (mm)", sort_headers) }}
{{ sort_th("ProductODin", "OD (in)", sort_headers) }}
{{ sort_th("TBXThreadAttribute", "Thread Attribute", sort_headers) }}
{{ sort_th("UACDiameterRangemm", "UAC Diameter Range (mm)", sort_headers) }}
</tr>
</thead>
<tbody>
@@ -25,9 +26,10 @@
<td>{{ p.ProductODmm or '—' }}</td>
<td>{{ p.ProductODin or '—' }}</td>
<td>{{ p.TBXThreadAttribute or '—' }}</td>
<td>{{ p.UACDiameterRangemm or '—' }}</td>
</tr>
{% else %}
<tr><td colspan="8" class="muted">No imported parts. Use Refresh to sync from OData.</td></tr>
<tr><td colspan="9" class="muted">No imported parts. Use Refresh to sync from OData.</td></tr>
{% endfor %}
</tbody>
</table>
+1
View File
@@ -1233,6 +1233,7 @@ _IMPORTED_PARTS_SORT_COLUMNS = [
"ProductODmm",
"ProductODin",
"TBXThreadAttribute",
"UACDiameterRangemm",
]