fix problem in string formatting

This commit is contained in:
Thomas Peetz
2025-01-08 15:34:11 +01:00
parent e078f43cc6
commit fc4110b11d
+2 -2
View File
@@ -57,13 +57,13 @@ class ExportKontorDialog(QDialog):
def change_export_type(self, text):
self.current_export_type = text
self.label.setText(f"Export DB to data.{self.export_options[text]["ext"]}")
self.label.setText(f'Export DB to data.{self.export_options[text]["ext"]}')
def select_file(self):
file_dialog = QFileDialog()
file_dialog.setFileMode(QFileDialog.FileMode.AnyFile)
file_dialog.setDefaultSuffix(self.export_options[self.current_export_type]["ext"])
file_dialog.setNameFilter(f"*{self.export_options[self.current_export_type]["ext"]}")
file_dialog.setNameFilter(f'*{self.export_options[self.current_export_type]["ext"]}')
if file_dialog.exec():
self.file_name = file_dialog.selectedFiles()[0]
export_file = Path(self.file_name)