commit 5ead2b8c42daea738d37d87571c5e0cbd37027c7 Author: Arturo Filastò art@fuffa.org Date: Fri Jun 7 00:31:23 2013 +0200
Add support for closing a report --- ooni/reporter.py | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/ooni/reporter.py b/ooni/reporter.py index 85df36e..b80a2a3 100644 --- a/ooni/reporter.py +++ b/ooni/reporter.py @@ -353,6 +353,10 @@ class OONIBReporter(OReporter): self.backendVersion = parsed_response['backend_version'] log.debug("Created report with id %s" % parsed_response['report_id'])
+ def finish(self): + url = self.collectorAddress + '/report/' + self.reportID + '/close' + response = yield self.agent.request("POST", url) + class ReportClosed(Exception): pass
tor-commits@lists.torproject.org