From 721e825200380363d8a6767fac4d207410dbf21b Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 24 Sep 2024 10:14:50 -0500 Subject: Lint: Get rid of single-use variable --- uploader/genotypes/views.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'uploader') 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( -- cgit v1.2.3