Skip to content

Commit

Permalink
Fix code style issues with Black
Browse files Browse the repository at this point in the history
  • Loading branch information
weee-open-bot committed Dec 3, 2021
1 parent f991eed commit ef76604
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
4 changes: 3 additions & 1 deletion basilico.py
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,9 @@ def remove_all_from_queue(self, cmd: str, _unused: str):

for the_command in commands_to_remove:
queued_commands.remove(the_command)
logging.debug(f"Removed {len(commands_to_remove)} items from tasks list")
logging.debug(
f"Removed {len(commands_to_remove)} items from tasks list"
)

return None

Expand Down
15 changes: 8 additions & 7 deletions pinolo.py
Original file line number Diff line number Diff line change
Expand Up @@ -585,13 +585,17 @@ def queue_info(self):
self.deselect()

def get_multiple_drive_selection(self):
""" This method returns a list with the names of the selected drives on disk_table """
"""This method returns a list with the names of the selected drives on disk_table"""
drives = []
selected_items = self.diskTable.selectedItems()
columns = self.diskTable.columnCount()
for idx in range(len(selected_items) // columns):
drives.append([selected_items[idx * columns].text(),
selected_items[(idx * columns) + 1].text()])
drives.append(
[
selected_items[idx * columns].text(),
selected_items[(idx * columns) + 1].text(),
]
)

return drives

Expand Down Expand Up @@ -655,7 +659,6 @@ def erase(self, std=False, drives=None):
for drive in drives:
self.client.send("queued_badblocks " + drive[0])


except BaseException:
print("GUI: Error in erase Function")

Expand Down Expand Up @@ -1002,9 +1005,7 @@ def use_cannolo_img(self, directory: str, img: str):
for drive in drives:
ids += f"{drive[0]}, "
ids.rstrip(", ")
self.statusBar().showMessage(
f"Sending cannolo to {ids} with {img}"
)
self.statusBar().showMessage(f"Sending cannolo to {ids} with {img}")
for drive in drives:
self.client.send(f"queued_cannolo {drive[0]} {directory}")

Expand Down

0 comments on commit ef76604

Please sign in to comment.