diff --git a/sohstationviewer/view/db_config/channel_dialog.py b/sohstationviewer/view/db_config/channel_dialog.py index 8d12ebf3c742135535a9e0841654a8a6e7926031..414d4d53cc98aba04db6bc1fe368ef11a380fcde 100755 --- a/sohstationviewer/view/db_config/channel_dialog.py +++ b/sohstationviewer/view/db_config/channel_dialog.py @@ -73,8 +73,8 @@ class ChannelDialog(UiDBInfoDialog): self.delete_sql_supplement = f" AND dataType='{self.data_type}'" self.setWindowTitle("Edit/Add/Delete Channels") self.insert_sql_template = (f"INSERT INTO Channels VALUES" - f"(?, ?, ?, '', ?, ?, ?, ?," - f"'{self.data_type}')") + f"(?, ?, ?, '', ?, ?, ?, " + f"'{self.data_type}', ?)") self.update_sql_template = (f"UPDATE Channels SET channel=?, " f"label=?, param=?, convertFactor=?, " f"unit=?, fixPoint=?, readAllPoints=?"