From 035520cd5f99fb91540831d4d46b682452675d1b Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Thu, 10 Mar 2022 17:22:44 +0300 Subject: Apply auto-pep8 to sample_data.py and it's test file --- gn3/db/sample_data.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gn3/db') diff --git a/gn3/db/sample_data.py b/gn3/db/sample_data.py index 6482116..e5c5e48 100644 --- a/gn3/db/sample_data.py +++ b/gn3/db/sample_data.py @@ -1,5 +1,5 @@ from gn3.csvcmp import extract_strain_name -from typing import Any, Tuple, Union +from typing import Any, Tuple import MySQLdb @@ -333,9 +333,9 @@ def insert_sample_data(conn: Any, # pylint: disable=[R0913] # Check if the data already exists: with conn.cursor() as cursor: cursor.execute( - "SELECT Id FROM PublishData where Id = %s " - "AND StrainId = %s", - (data_id, strain_id)) + "SELECT Id FROM PublishData where Id = %s " + "AND StrainId = %s", + (data_id, strain_id)) if cursor.fetchone(): # Data already exists return count -- cgit v1.2.3