diff --git a/ref-test/app/install.py b/ref-test/app/install.py index 4abf057..2ef212b 100644 --- a/ref-test/app/install.py +++ b/ref-test/app/install.py @@ -15,7 +15,7 @@ def install_app(app): if not path.isdir(f'./{data}'): mkdir(f'./{data}') if not path.isdir(f'./{data}/questions'): mkdir(f'./{data}/questions') if not path.isfile(f'./{data}/.gitignore'): - with open(f'./{data}/.gitignore', 'a+') as file: file.write(f'*') + with open(f'./{data}/.gitignore', 'w') as file: file.write(f'*') if not path.isfile(f'./{data}/config.json'): save({}, 'config.json') if not path.isdir(f'./{data}/logs'): mkdir(f'./{data}/logs') if not path.isfile(f'./{data}/logs/users.log'): write('users.log', 'Log file created.')