Skip to content

Commit

Permalink
Clear disconnection events after getting them
Browse files Browse the repository at this point in the history
  • Loading branch information
jjyao committed Apr 30, 2013
1 parent ac49a22 commit d346827
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pyapns/rest_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,8 +168,10 @@ class DisconnectionLogResource(AppEnvResourceBase):
isLeaf = True

def render_GET(self, request):
return json_response([d.to_simple() for d in self.app.disconnections],
response = json_response([d.to_simple() for d in self.app.disconnections],
request)
self.app.disconnections.clear()
return response


class FeedbackResource(AppEnvResourceBase):
Expand Down

0 comments on commit d346827

Please sign in to comment.