This commit is contained in:
Donald Zou
2025-04-20 02:52:22 +08:00
parent bf7adf9ca9
commit 7689ebcac5
2 changed files with 11 additions and 9 deletions

View File

@@ -164,7 +164,7 @@ class PeerJobs:
except Exception as e:
return False, str(e)
def updateJobConfigurationName(self, ConfigurationName: str, NewConfigurationName: str) -> tuple[bool, str]:
def updateJobConfigurationName(self, ConfigurationName: str, NewConfigurationName: str) -> tuple[bool, str] | tuple[bool, None]:
try:
with self.jobdb:
jobdbCursor = self.jobdb.cursor()
@@ -173,6 +173,7 @@ class PeerJobs:
''', (NewConfigurationName, ConfigurationName, ))
self.jobdb.commit()
self.__getJobs()
return True, None
except Exception as e:
return False, str(e)