change file read to write minor error

This commit is contained in:
Xevion
2019-12-23 15:43:25 -06:00
parent 19169c4925
commit 871a109fa8

View File

@@ -73,7 +73,7 @@ service_functions = {
}
if not os.path.exists(os.path.join('app', 'sounds', 'filenames.json')):
with open(os.path.join('app', 'sounds', 'filenames.json'), 'r+') as file:
with open(os.path.join('app', 'sounds', 'filenames.json'), 'w') as file:
json.dump({'youtube' : {} })
# Streams a prepared MP3 back to the client