add mudbjson mgr
This commit is contained in:
parent
97785aae2e
commit
9e64d1837c
3 changed files with 223 additions and 2 deletions
|
@ -231,7 +231,7 @@ class MuJsonTransfer(DbTransfer):
|
|||
import json
|
||||
rows = None
|
||||
|
||||
config_path = "mudb.json"
|
||||
config_path = get_config().MUDB_FILE
|
||||
with open(config_path, 'r+') as f:
|
||||
rows = shell.parse_json_in_str(f.read().decode('utf8'))
|
||||
for row in rows:
|
||||
|
@ -249,7 +249,7 @@ class MuJsonTransfer(DbTransfer):
|
|||
def pull_db_all_user(self):
|
||||
rows = None
|
||||
|
||||
config_path = "mudb.json"
|
||||
config_path = get_config().MUDB_FILE
|
||||
with open(config_path, 'r+') as f:
|
||||
rows = shell.parse_json_in_str(f.read().decode('utf8'))
|
||||
for row in rows:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue