X-Git-Url: http://woldlab.caltech.edu/gitweb/?p=htsworkflow.git;a=blobdiff_plain;f=htsworkflow%2Ffrontend%2Freports%2Freports.py;fp=htsworkflow%2Ffrontend%2Freports%2Freports.py;h=e2ff54f817850babf06791e97ea26d0502af703d;hp=18cd3285c5bb90b4fdeaea37292f02fdb9ade45a;hb=53ebb47e86e81ce349d4ef4e16aef94be93486ea;hpb=4262586d10cc0cc227390873b301b55244204c11 diff --git a/htsworkflow/frontend/reports/reports.py b/htsworkflow/frontend/reports/reports.py index 18cd328..e2ff54f 100644 --- a/htsworkflow/frontend/reports/reports.py +++ b/htsworkflow/frontend/reports/reports.py @@ -27,7 +27,7 @@ def getBgColor(reads_cnt,exp_type): def report1(request): EXP = 'ChIP-seq' - if request.GET.has_key('aflid'): + if 'aflid' in request.GET: AFL_Id = request.GET['aflid'] try: AFL = Affiliation.objects.get(id=AFL_Id).name @@ -170,10 +170,10 @@ def report1(request): def report_RM(request): #for RNA-Seq and Methyl-Seq EXP = 'RNA-seq' - if request.GET.has_key('exp'): + if 'exp' in request.GET: EXP = request.GET['exp'] # Methyl-seq - if request.GET.has_key('aflid'): + if 'aflid' in request.GET: AFL_Id = request.GET['aflid'] try: AFL = Affiliation.objects.get(id=AFL_Id).name