mirror of
https://github.com/lutris/lutris
synced 2024-11-02 08:20:51 +00:00
Update commands.py
Whoops! write_file was writing filename to the file instead of the contents.
This commit is contained in:
parent
2ad1f46e60
commit
3c8b372945
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ class CommandsMixin(object):
|
|||
mode = params.get('mode', 'w')
|
||||
|
||||
with open(file, mode) as f:
|
||||
f.write(params['file'])
|
||||
f.write(params['content'])
|
||||
|
||||
def write_json(self, params):
|
||||
"""Write data into a json file."""
|
||||
|
|
Loading…
Reference in a new issue