Accept Merge Request #167: (fix-snapshot -> master)
Merge Request: Fix snapshot api Created By: @王琼钰 Accepted By: @王琼钰 URL: https://tjwater.coding.net/p/tjwatercloud/d/TJWaterServer/git/merge/167?initial=true
This commit is contained in:
@@ -163,11 +163,11 @@ def execute_redo(name: str) -> ChangeSet:
|
||||
|
||||
|
||||
def have_snapshot(name: str, tag: str) -> bool:
|
||||
return read(name, f"select id from snapshot_operation where tag = '{tag}'") != None
|
||||
return try_read(name, f"select id from snapshot_operation where tag = '{tag}'") != None
|
||||
|
||||
|
||||
def have_snapshot_for_operation(name: str, operation: int) -> bool:
|
||||
return read(name, f"select id from snapshot_operation where id = {operation}") != None
|
||||
return try_read(name, f"select id from snapshot_operation where id = {operation}") != None
|
||||
|
||||
|
||||
def have_snapshot_for_current_operation(name: str) -> bool:
|
||||
|
||||
Reference in New Issue
Block a user