From 91efa6c946d400869e4f45524ecbc384b991f3c8 Mon Sep 17 00:00:00 2001
From: Samuel Gaist <samuel.gaist@idiap.ch>
Date: Thu, 26 Apr 2018 15:52:07 +0200
Subject: [PATCH] [plotters][views] Fix key search in dictionaries

---
 beat/web/plotters/views.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/beat/web/plotters/views.py b/beat/web/plotters/views.py
index 2bf1c2362..bb718683f 100644
--- a/beat/web/plotters/views.py
+++ b/beat/web/plotters/views.py
@@ -99,7 +99,7 @@ def plot(request):
 
     report_experiments = None
 
-    if use.has_key("report_number"):
+    if "report_number" in use:
         try:
             report = Report.objects.get(number = int(use["report_number"]))
         except:
-- 
GitLab