Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit c004956

Browse files
committed
Unmarshal json moderators
1 parent eb17de1 commit c004956

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/ws.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def get_moderators(self, message_id):
8989

9090
def parse_response(moderators):
9191
if moderators is not None:
92-
current_mods = self.factory.db.settings.get()[11]
92+
current_mods = json.loads(self.factory.db.settings.get()[11])
9393
self.factory.db.moderators.clear_all(except_guids=current_mods)
9494

9595
def parse_profile(profile, node):

0 commit comments

Comments
 (0)