From 15e0c2a11c01289fca5fddd5ff894d3917242048 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Oudin?= Date: Mon, 26 Feb 2018 16:37:51 +0100 Subject: [PATCH] Partial runner fix --- histories/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/histories/models.py b/histories/models.py index 45e6a7d..d970c20 100644 --- a/histories/models.py +++ b/histories/models.py @@ -107,12 +107,12 @@ class History(models.Model): output += str(entry) + '\n' return output - def play_histories(self): + async def play_histories(self): """ Actually plays the history. """ self.played = True - runner = TorInstance(self.return_history()) - runnner.run() + runner = await TorInstance.create(self.return_history(), self.user.browser_fingerprint.serialize_headers()) + runner.run() self.save() def to_xml(self, xml_root=None):