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