avoid making mudb.json empty
test more encryptor add rc4-md5-6
This commit is contained in:
parent
45584dc4f5
commit
cd6dab188c
4 changed files with 32 additions and 11 deletions
|
@ -250,8 +250,9 @@ class MuJsonTransfer(DbTransfer):
|
|||
|
||||
if rows:
|
||||
output = json.dumps(rows, sort_keys=True, indent=4, separators=(',', ': '))
|
||||
with open(config_path, 'w') as f:
|
||||
with open(config_path, 'r+') as f:
|
||||
f.write(output)
|
||||
f.truncate()
|
||||
|
||||
def pull_db_all_user(self):
|
||||
import json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue