summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorDuda Dornelles <ddornell@thoughtworks.com>2014-12-23 18:01:45 -0200
committerDuda Dornelles <ddornell@thoughtworks.com>2015-01-05 09:45:49 -0200
commit8eec49f1551a84f98df1d11a837cfbfb2f6b1ac1 (patch)
tree0f409a7399ca395b0a1b3166213d40d95ddbd96d /service
parentbe88a9cff99cfa58499b99e0090223239bf097fb (diff)
Ooopsie, forgot some debug code there
Diffstat (limited to 'service')
-rw-r--r--service/pixelated/controllers/mails_controller.py4
1 files changed, 0 insertions, 4 deletions
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 <http://www.gnu.org/licenses/>.
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')