Browse Source

Correction syntax sur la nouvelle méthode d'ouverture du fichier json

Driky 9 years ago
parent
commit
cee5b53445
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      EditorialModel/backend/json_backend.py

+ 2
- 2
EditorialModel/backend/json_backend.py View File

@@ -44,8 +44,8 @@ class EmBackendJson(object):
44 44
     #
45 45
     # @param json_file str: path to the json_file used as data source
46 46
     def __init__(self, json_file):
47
-        with open(json_file).read() as json_data:
48
-            self.data = json.loads(json_data)
47
+        with open(json_file) as json_data:
48
+            self.data = json.loads(json_data.read())
49 49
 
50 50
     ## Loads the data in the data source json file
51 51
     #

Loading…
Cancel
Save