Update main.py
Browse files
main.py
CHANGED
@@ -47,7 +47,7 @@ def valueInJSON(value, key):
|
|
47 |
return ""
|
48 |
|
49 |
if not os.path.exists(jsonPath):
|
50 |
-
with open(jsonPath, 'w') as file:
|
51 |
json.dump({"names": {}, "addresses": {}, "companyNames": {}, "phoneNumbers": {}, "emails": {}}, file, indent=2)
|
52 |
|
53 |
with open(jsonPath, 'r') as file:
|
|
|
47 |
return ""
|
48 |
|
49 |
if not os.path.exists(jsonPath):
|
50 |
+
with open(jsonPath, 'w+') as file:
|
51 |
json.dump({"names": {}, "addresses": {}, "companyNames": {}, "phoneNumbers": {}, "emails": {}}, file, indent=2)
|
52 |
|
53 |
with open(jsonPath, 'r') as file:
|