Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aaPanel/BaoTa
/ write_lock
Method
write_lock
class/projectModel/totle_db.py:319–322 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
317
318
# 写锁
319
def
write_lock(self):
320
self.is_lock()
321
with
open(self.__LOCK,
'wb+'
)
as
f:
322
f.close()
323
324
# 解锁
325
def
rm_lock(self):
Callers
7
add
Method · 0.95
addAll
Method · 0.95
save
Method · 0.95
delete
Method · 0.95
execute
Method · 0.95
create
Method · 0.95
fofile
Method · 0.95
Calls
3
is_lock
Method · 0.95
open
Function · 0.85
close
Method · 0.45
Tested by
no test coverage detected