Skip to content

Commit 76906c5

Browse files
committed
Merge pull request #30 from henryl/patch-1
Make GaeNdbChannel recognize custom JSON encoders
2 parents bff2941 + 6701e04 commit 76906c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pusher/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class GaeNdbChannel(GoogleAppEngineChannel):
145145
@ndb.tasklet
146146
def trigger_async(self, event, data={}, socket_id=None):
147147
"""Async trigger that in turn calls send_request_async"""
148-
json_data = json.dumps(data)
148+
json_data = json.dumps(data, cls=self.pusher.encoder)
149149
status = yield self.send_request_async(self.signed_query(event, json_data, socket_id), json_data)
150150
if status == 202:
151151
raise ndb.Return(True)

0 commit comments

Comments
 (0)