Skip to content

Commit

Permalink
DefaultQueryTab/SEToolsTableView: Correct PEP8 issues.
Browse files Browse the repository at this point in the history
Signed-off-by: Chris PeBenito <chpebeni@linux.microsoft.com>
  • Loading branch information
pebenito committed Dec 6, 2023
1 parent 4bde9ec commit 0e379f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion setoolsgui/apol/defaultquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ def run(self, button):
self.query.default = self.default_value.currentData(Qt.ItemDataRole.UserRole)

if self.default_range_value.isEnabled():
self.query.default_range = self.default_range_value.currentData(Qt.ItemDataRole.UserRole)
self.query.default_range = self.default_range_value.currentData(
Qt.ItemDataRole.UserRole)
else:
self.query.default_range = None

Expand Down
4 changes: 3 additions & 1 deletion setoolsgui/tableview.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def save_csv(self, filename):
# write headers
csv_row = []
for col in range(col_count):
csv_row.append(datamodel.headerData(col, Qt.Orientation.Horizontal, Qt.ItemDataRole.DisplayRole))
csv_row.append(datamodel.headerData(col,
Qt.Orientation.Horizontal,
Qt.ItemDataRole.DisplayRole))

writer.writerow(csv_row)

Expand Down

0 comments on commit 0e379f9

Please sign in to comment.