Skip to content
Snippets Groups Projects
Commit 8b32d733 authored by Kien Le's avatar Kien Le
Browse files

Fix problem saving in Channels editor

parent abd8ae0e
No related branches found
No related tags found
No related merge requests found
...@@ -73,8 +73,8 @@ class ChannelDialog(UiDBInfoDialog): ...@@ -73,8 +73,8 @@ class ChannelDialog(UiDBInfoDialog):
self.delete_sql_supplement = f" AND dataType='{self.data_type}'" self.delete_sql_supplement = f" AND dataType='{self.data_type}'"
self.setWindowTitle("Edit/Add/Delete Channels") self.setWindowTitle("Edit/Add/Delete Channels")
self.insert_sql_template = (f"INSERT INTO Channels VALUES" self.insert_sql_template = (f"INSERT INTO Channels VALUES"
f"(?, ?, ?, '', ?, ?, ?, ?," f"(?, ?, ?, '', ?, ?, ?, "
f"'{self.data_type}')") f"'{self.data_type}', ?)")
self.update_sql_template = (f"UPDATE Channels SET channel=?, " self.update_sql_template = (f"UPDATE Channels SET channel=?, "
f"label=?, param=?, convertFactor=?, " f"label=?, param=?, convertFactor=?, "
f"unit=?, fixPoint=?, readAllPoints=?" f"unit=?, fixPoint=?, readAllPoints=?"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment