From 643b5528ced8fa0208b87b335a26d5805e54f863 Mon Sep 17 00:00:00 2001 From: Shinga13 <93780215+Shinga13@users.noreply.github.com> Date: Thu, 14 Mar 2024 12:47:03 +0100 Subject: [PATCH] Re-fix the f strings --- OSCRUI/datafunctions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OSCRUI/datafunctions.py b/OSCRUI/datafunctions.py index 13f2ef9..7f544aa 100644 --- a/OSCRUI/datafunctions.py +++ b/OSCRUI/datafunctions.py @@ -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': @@ -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)