Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosp420 committed Sep 4, 2015
1 parent 2d7f5fc commit 927eb32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions voseq/view_genes/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ def gene(request, gene_code):
username = get_username(request)

queryset = Genes.objects.filter(gene_code=gene_code)
if queryset:
item = queryset[0]
else:
if not queryset:
item = ''
else:
item = queryset[0]

if ';' in item.intron:
introns = item.intron.split(';')
Expand Down

0 comments on commit 927eb32

Please sign in to comment.