From efab086057c5d2520bbbe435349c5bbcc0ceb6c8 Mon Sep 17 00:00:00 2001 From: Vivek Santayana Date: Wed, 22 Jun 2022 09:31:16 +0100 Subject: [PATCH] Gitignore bugfix --- ref-test/app/install.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.')