Skip to content

Commit

Permalink
changed value to string to test
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanholen-hpe committed Nov 13, 2024
1 parent 3805bdc commit 235d701
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sat/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def sort_data(self):
"""
if self.sort_by is not None:
try:
self.data.sort(key=lambda d: VersionInfo.parse(d[self.sort_by]), reverse=self.reverse)
self.data.sort(key=lambda d: VersionInfo.parse(str(d[self.sort_by])), reverse=self.reverse)
except TypeError:
LOGGER.info("Converting all values of '%s' field to str "
"to allow sorting.", self.sort_by)
Expand Down

0 comments on commit 235d701

Please sign in to comment.