Skip to content
Snippets Groups Projects

Implement dialog to add/edit a single channel in database

Merged Lan Dam requested to merge i69-add-edit-single-channel-dialog into master
All threads resolved!
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
@@ -162,10 +162,11 @@ def get_color_ranges():
return range_names, all_square_counts, clr_labels
def create_assign_string_for_db_query(col, val):
def create_assign_string_for_db_query(col: str, val: str) -> str:
"""
Create assign db string that assign to NULL if val is empty str
:param col: column in the db table
Create assign db string that assign value in single quote signs if val is
a string or to NULL if val is empty str
:param col: column name in the db table
:param val: value to be assigned to the column
:return: the assign db string
"""
Loading