aboutsummaryrefslogtreecommitdiff
path: root/uploader
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-09-24 10:14:50 -0500
committerFrederick Muriuki Muriithi2024-09-24 10:14:50 -0500
commit721e825200380363d8a6767fac4d207410dbf21b (patch)
tree52a2537aeaf902ce64929de60f25dfba0a94af28 /uploader
parenteb07b9fa8a7249b1d17632a4a73e133e6ac7ea75 (diff)
downloadgn-uploader-721e825200380363d8a6767fac4d207410dbf21b.tar.gz
Lint: Get rid of single-use variable
Diffstat (limited to 'uploader')
-rw-r--r--uploader/genotypes/views.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/uploader/genotypes/views.py b/uploader/genotypes/views.py
index 9da4dec..1ac36b2 100644
--- a/uploader/genotypes/views.py
+++ b/uploader/genotypes/views.py
@@ -117,16 +117,18 @@ def list_markers(species_id: int):
start_from = max(safe_int(request.args.get("start_from") or 0), 0)
count = safe_int(request.args.get("count") or 20)
- markers = enumerate_sequence(
- genotype_markers(conn, species_id, offset=start_from, limit=count),
- start=start_from+1)
return render_template("genotypes/list-markers.html",
species=species,
total_markers=genotype_markers_count(
conn, species_id),
start_from=start_from,
count=count,
- markers=markers,
+ markers=enumerate_sequence(
+ genotype_markers(conn,
+ species_id,
+ offset=start_from,
+ limit=count),
+ start=start_from+1),
activelink="list-markers")
@genotypesbp.route(