From 88624345d0fcf02de83d1f3902d35ee72a7cbc17 Mon Sep 17 00:00:00 2001 From: SimpleArt <71458112+SimpleArt@users.noreply.github.com> Date: Wed, 2 Dec 2020 18:06:31 -0500 Subject: [PATCH] Using standard multiline code formatting --- src/database/sql_database.py | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/database/sql_database.py b/src/database/sql_database.py index 6a67d0f..b9b7f8e 100644 --- a/src/database/sql_database.py +++ b/src/database/sql_database.py @@ -224,6 +224,7 @@ class SQL_Database: cur.execute(query) return cur.fetchone() + def remove_database(self): """Remove the current database file using the database_name attribute.""" os.remove(self._database_name) @@ -235,11 +236,16 @@ class SQL_Database: query_data = self.query_all(f"SELECT id,chromosome_length,population_size,generation_goal FROM config;") print( - tabulate(query_data, headers=['id', - 'chromosome_length', - 'population_size', - 'generation_goal']) + tabulate( + query_data, + headers = [ + 'id', + 'chromosome_length', + 'population_size', + 'generation_goal' + ] ) + ) def get_most_recent_config_id(self):