views: use PART_TYPE_CODES, not PART_CODES

master 1.1.3-18
OpenGnSys Support Team 2024-02-21 10:38:52 +01:00
parent f18f989011
commit f6f84cf8b2
1 changed files with 1 additions and 1 deletions

View File

@ -831,7 +831,7 @@ def action_image_restore():
form.partition.choices = [
(f"{disk_id} {part_id}",
f"Disk {disk_id} | Partition {part_id} "
f"| {PART_CODES.get(part_code, 'UNKNOWN')} "
f"| {PART_TYPE_CODES.get(part_code, 'UNKNOWN')} "
f"{FS_CODES.get(filesystem, 'UNKNOWN')}")
for disk_id, part_id, part_code, filesystem in part_choices ]
scopes, clients = get_scopes(set(ips))