Refine option to support batch command
This commit is contained in:
@@ -22,7 +22,7 @@ from .s19_reactions import set_reaction_cmd, set_pipe_reaction_cmd, set_tank_rea
|
||||
from .s20_mixing import set_mixing_cmd, add_mixing_cmd, delete_mixing_cmd
|
||||
from .s21_times import set_time_cmd
|
||||
#from .s22_report import *
|
||||
from .s23_options import set_option_cmd
|
||||
from .s23_options_util import set_option_cmd, set_option_v3_cmd
|
||||
#from .s24_coordinates import *
|
||||
from .s25_vertices import set_vertex_cmd, add_vertex_cmd, delete_vertex_cmd
|
||||
from .s26_labels import set_label_cmd, add_label_cmd, delete_label_cmd
|
||||
@@ -89,6 +89,8 @@ def add_cmd(name: str, cs: ChangeSet) -> DbChangeSet | None:
|
||||
return None
|
||||
elif type == s23_option:
|
||||
return None
|
||||
elif type == s23_option_v3:
|
||||
return None
|
||||
elif type == s24_coordinate:
|
||||
return None
|
||||
elif type == s25_vertex:
|
||||
@@ -164,6 +166,8 @@ def set_cmd(name: str, cs: ChangeSet) -> DbChangeSet | None:
|
||||
return None
|
||||
elif type == s23_option:
|
||||
return set_option_cmd(name, cs)
|
||||
elif type == s23_option_v3:
|
||||
return set_option_v3_cmd(name, cs)
|
||||
elif type == s24_coordinate: # do not support update here
|
||||
return None
|
||||
elif type == s25_vertex:
|
||||
@@ -239,6 +243,8 @@ def del_cmd(name: str, cs: ChangeSet) -> DbChangeSet | None:
|
||||
return None
|
||||
elif type == s23_option:
|
||||
return None
|
||||
elif type == s23_option_v3:
|
||||
return None
|
||||
elif type == s24_coordinate:
|
||||
return None
|
||||
elif type == s25_vertex:
|
||||
|
||||
Reference in New Issue
Block a user