We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac49a22 + d346827 commit 42e6a75Copy full SHA for 42e6a75
pyapns/rest_service.py
@@ -168,8 +168,10 @@ class DisconnectionLogResource(AppEnvResourceBase):
168
isLeaf = True
169
170
def render_GET(self, request):
171
- return json_response([d.to_simple() for d in self.app.disconnections],
+ response = json_response([d.to_simple() for d in self.app.disconnections],
172
request)
173
+ self.app.disconnections.clear()
174
+ return response
175
176
177
class FeedbackResource(AppEnvResourceBase):
0 commit comments