[birthday_reminder] Load json file correctly
This commit is contained in:
@@ -70,7 +70,7 @@ class BirthDayPlugin(GajimPlugin):
|
|||||||
with path.open('r') as file:
|
with path.open('r') as file:
|
||||||
content = file.read()
|
content = file.read()
|
||||||
if content:
|
if content:
|
||||||
self._birthdays = json.load(file)
|
self._birthdays = json.loads(content)
|
||||||
|
|
||||||
def _store_birthdays(self):
|
def _store_birthdays(self):
|
||||||
data_path = Path(configpaths.get('PLUGINS_DATA'))
|
data_path = Path(configpaths.get('PLUGINS_DATA'))
|
||||||
|
|||||||
Reference in New Issue
Block a user