avoid making mudb.json empty

test more encryptor
add rc4-md5-6
This commit is contained in:
BreakWa11 2016-07-08 11:13:18 +08:00
parent 45584dc4f5
commit cd6dab188c
4 changed files with 32 additions and 11 deletions

View file

@ -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