diff options
Diffstat (limited to 'uploader/platforms')
-rw-r--r-- | uploader/platforms/models.py | 2 | ||||
-rw-r--r-- | uploader/platforms/views.py | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/uploader/platforms/models.py b/uploader/platforms/models.py index 199f2df..a859371 100644 --- a/uploader/platforms/models.py +++ b/uploader/platforms/models.py @@ -49,7 +49,7 @@ def platform_by_species_and_id( with conn.cursor(cursorclass=DictCursor) as cursor: cursor.execute("SELECT * FROM GeneChip WHERE SpeciesId=%s AND Id=%s", (species_id, platformid)) - result = cursor.fetchone() + result = cursor.fetchone()#pylint: disable=[duplicate-code] if bool(result): return dict(result) diff --git a/uploader/platforms/views.py b/uploader/platforms/views.py index 2ff45b8..2d61b6a 100644 --- a/uploader/platforms/views.py +++ b/uploader/platforms/views.py @@ -16,8 +16,7 @@ from uploader.datautils import safe_int, order_by_family, enumerate_sequence from .models import (save_new_platform, platforms_by_species, - species_platforms_count, - platform_by_species_and_id) + species_platforms_count) platformsbp = Blueprint("platforms", __name__) render_template = make_template_renderer("platforms") @@ -88,7 +87,7 @@ def create_platform(species_id: int): try: form = request.form - new_platform = save_new_platform( + _new_platform = save_new_platform( cursor, species_id, form["geo-platform"], |