Skip to content

Commit

Permalink
Re-fix the f strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Shinga13 committed Mar 14, 2024
1 parent 9e33434 commit 643b552
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OSCRUI/datafunctions.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def copy_analysis_callback(self):
for player_item in current_table.model()._player._children:
magnitudes.append((player_item.get_data(2), ''.join(player_item.get_data(0))))
magnitudes.sort(key=lambda x: x[0], reverse=True)
magnitudes = [f'{magnitude:,.2f} [{''.join(player)}]' for magnitude, player in magnitudes]
magnitudes = [f"{magnitude:,.2f} [{''.join(player)}]" for magnitude, player in magnitudes]
output_string = (f'< OSCR > {prefix}: {" | ".join(magnitudes)}')
self.app.clipboard().setText(output_string)
elif copy_mode == 'Magnitude / s':
Expand All @@ -335,6 +335,6 @@ def copy_analysis_callback(self):
for player_item in current_table.model()._player._children:
magnitudes.append((player_item.get_data(1), ''.join(player_item.get_data(0))))
magnitudes.sort(key=lambda x: x[0], reverse=True)
magnitudes = [f'{magnitude:,.2f} [{''.join(player)}]' for magnitude, player in magnitudes]
magnitudes = [f"{magnitude:,.2f} [{''.join(player)}]" for magnitude, player in magnitudes]
output_string = (f'< OSCR > {prefix}: {" | ".join(magnitudes)}')
self.app.clipboard().setText(output_string)

0 comments on commit 643b552

Please sign in to comment.