mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
update
This commit is contained in:
@@ -45,6 +45,11 @@ class monitor:
|
||||
monitor._instance = monitor(*args, **kwargs)
|
||||
return monitor._instance
|
||||
|
||||
def clearDbFile(self):
|
||||
os.remove(self._dbfile)
|
||||
self.initDBFile()
|
||||
return True
|
||||
|
||||
def initDBFile(self):
|
||||
if os.path.exists(self._dbfile):
|
||||
return True
|
||||
|
||||
Reference in New Issue
Block a user