Skip to content

Commit

Permalink
Merge pull request #48 from JiajunYao/clear_disconneciton_events
Browse files Browse the repository at this point in the history
Clear disconnection events after getting them
  • Loading branch information
Samuel Sutch committed Apr 30, 2013
2 parents ac49a22 + d346827 commit 42e6a75
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 42e6a75

Please sign in to comment.