Guard tag

This commit is contained in:
WQY\qiong
2023-03-22 21:06:14 +08:00
parent 39e2316631
commit 26b7f089fd

View File

@@ -76,6 +76,8 @@ def set_tag_cmd(name: str, cs: ChangeSet) -> DbChangeSet:
def set_tag(name: str, cs: ChangeSet) -> ChangeSet:
if 't_type' not in cs.operations[0] or 'id' not in cs.operations[0] or 'tag' not in cs.operations[0]:
return ChangeSet()
return execute_command(name, set_tag_cmd(name, cs))