From 8eec49f1551a84f98df1d11a837cfbfb2f6b1ac1 Mon Sep 17 00:00:00 2001 From: Duda Dornelles Date: Tue, 23 Dec 2014 18:01:45 -0200 Subject: Ooopsie, forgot some debug code there --- service/pixelated/controllers/mails_controller.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'service/pixelated/controllers/mails_controller.py') diff --git a/service/pixelated/controllers/mails_controller.py b/service/pixelated/controllers/mails_controller.py index 29e25d76..dfd1c73b 100644 --- a/service/pixelated/controllers/mails_controller.py +++ b/service/pixelated/controllers/mails_controller.py @@ -15,8 +15,6 @@ # along with Pixelated. If not, see . import json -import random -import time from pixelated.adapter.model.mail import InputMail from pixelated.controllers import respond_json @@ -107,8 +105,6 @@ class MailsController: return respond_json(mail.as_dict(), request) def update_draft(self, request): - if bool(random.getrandbits(1)): - time.sleep(3) content_dict = json.loads(request.content.read()) _mail = InputMail.from_dict(content_dict) draft_id = content_dict.get('ident') -- cgit v1.2.3