Skip to content

Commit

Permalink
minor bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
samirg1 committed Oct 3, 2023
1 parent 68729ec commit 3115e4a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/design/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
_NO = "No"
_LOAD = "200"
_199 = "199"
_SPACE = " "

_CONDITION_LINES = {8877, 8305, 9610, 9599, 8315, 8237, 8284, 8333, 8324, 6014, 8248}

Expand Down Expand Up @@ -39,8 +40,10 @@
2827: _NA, # : accessories
481: _NA, # CLASSII: battery
483: _NA, # : accessories
477: _SPACE, # : earth resistance
478: _199, # : insulation resistance
479: _199, # : insulation resistance enclosure
485: _SPACE, # : touch current
6019: _NA, # WHEELCHAIR: attachments
6010: _NA, # : charger
6011: _NA, # : battery
Expand Down
2 changes: 1 addition & 1 deletion src/pages/TestPage.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def display_test(self, script: Script, test: Test) -> None:
ttk.Label(self.frame, text="Result").grid(column=0, row=row, columnspan=4)
row += 1
overall_results = get_overall_results(self.shared.job.customer_number)
result = tkinter.StringVar(value=self.test.final_result or overall_results[0].nickname)
result = tkinter.StringVar(value=self.test.final_result or overall_results[0].fullname)
for i, (nickname, fullname) in enumerate(overall_results):
button = ttk.Radiobutton(self.frame, text=nickname, variable=result, value=fullname, width=15)
Tooltip(button, fullname)
Expand Down

0 comments on commit 3115e4a

Please sign in to comment.