provider: add json

This commit is contained in:
0xMRTT 2023-05-05 01:15:30 +02:00
parent 48547c53a0
commit aca1434491
Signed by: 0xMRTT
GPG Key ID: 19C1449A774028BD
1 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@ from gettext import gettext as _
from gi.repository import Gtk, Adw
import json
class BavarderProvider:
name = None
slug = None
@ -14,8 +15,8 @@ class BavarderProvider:
self.chat = None
self.data = data
self.update_response = app.update_response
if data:
self.load(data)
if self.data:
self.load(json.loads(self.data))
self.no_data = False
else:
self.no_data = True