Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
samirg1 committed Sep 28, 2023
1 parent a3545ab commit e88b218
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/gui/automations.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
mouse = None



_RUN = True # actually run the automations or get default value (for testing)
_PRINT = False # print the automations (for testing)
_DELAY = 0 # delay between automations (for testing)
Expand Down
1 change: 0 additions & 1 deletion src/gui/db_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,3 @@ def get_jobs(job_number: str) -> list[Job]:
).fetchall()

return [Job(*fields) for fields in job_fields]

3 changes: 1 addition & 2 deletions src/pages/TestPage.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,8 @@ def get_items(self, item_number: str, item_entry: ttk.Entry, /, *, choose_script
self.is_editing = editing
if len(items) == 1:
return self.get_test(items[0], choose_script=choose_script)

OptionSelectPopup(self.frame, items, lambda item: self.get_test(item, choose_script=choose_script))


def get_test(self, item: Item, *, choose_script: bool = False) -> None:
self.shared.item_number_to_description[item.number] = item.description
Expand Down
2 changes: 1 addition & 1 deletion src/popups/JobEntryPopup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def _get_jobs(self, number: str) -> None:
if not jobs:
return
elif len(jobs) == 1:
return self._exit(jobs[0])
return self._exit(jobs[0])

OptionSelectPopup(self, jobs, self._exit)

Expand Down

0 comments on commit e88b218

Please sign in to comment.