diff --git a/.gitignore b/.gitignore index 1dbc687..50992e9 100644 --- a/.gitignore +++ b/.gitignore @@ -60,3 +60,6 @@ target/ #Ipython Notebook .ipynb_checkpoints + +# PyCharm +.idea diff --git a/exponent_server_sdk/__init__.py b/exponent_server_sdk/__init__.py index 52f27d9..40f23ac 100644 --- a/exponent_server_sdk/__init__.py +++ b/exponent_server_sdk/__init__.py @@ -501,9 +501,11 @@ def validate_and_get_receipts(self, response): ret = [] for r_id, val in response_data.items(): ret.append( - PushTicket(push_message=PushMessage(), - status=val.get('status', PushTicket.ERROR_STATUS), - message=val.get('message', ''), - details=val.get('details', None), - id=r_id)) + PushReceipt( + status=val.get('status', PushReceipt.ERROR_STATUS), + message=val.get('message', ''), + details=val.get('details', None), + id=r_id + ) + ) return ret