mirror of
http://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-24 03:21:27 +00:00
indent for auth file
This commit is contained in:
parent
24acce9523
commit
765f5a192d
|
@ -119,10 +119,10 @@ Read | Write (optional):
|
||||||
Insert token from "Access token" here''')
|
Insert token from "Access token" here''')
|
||||||
register_token = input()
|
register_token = input()
|
||||||
with open('.auth.json', 'rt') as f:
|
with open('.auth.json', 'rt') as f:
|
||||||
tkns = json.loads(f.read())
|
tkns = json.load(f)
|
||||||
with open('.auth.json', 'wt') as f:
|
with open('.auth.json', 'wt') as f:
|
||||||
tkns[current_instance.instance] = register_token
|
tkns[current_instance.instance] = register_token
|
||||||
f.write(json.dumps(tkns))
|
f.write(json.dumps(tkns, indent=4))
|
||||||
del tkns
|
del tkns
|
||||||
del register_token
|
del register_token
|
||||||
del f
|
del f
|
||||||
|
|
Loading…
Reference in a new issue