diff options
author | Frederick Muriuki Muriithi | 2024-09-24 10:14:50 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-09-24 10:14:50 -0500 |
commit | 721e825200380363d8a6767fac4d207410dbf21b (patch) | |
tree | 52a2537aeaf902ce64929de60f25dfba0a94af28 | |
parent | eb07b9fa8a7249b1d17632a4a73e133e6ac7ea75 (diff) | |
download | gn-uploader-721e825200380363d8a6767fac4d207410dbf21b.tar.gz |
Lint: Get rid of single-use variable
-rw-r--r-- | uploader/genotypes/views.py | 10 |
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( |