mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-15 03:33:01 +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''')
|
||||
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 New Issue
Block a user