Using standard multiline code formatting
This commit is contained in:
@ -224,6 +224,7 @@ class SQL_Database:
|
|||||||
cur.execute(query)
|
cur.execute(query)
|
||||||
return cur.fetchone()
|
return cur.fetchone()
|
||||||
|
|
||||||
|
|
||||||
def remove_database(self):
|
def remove_database(self):
|
||||||
"""Remove the current database file using the database_name attribute."""
|
"""Remove the current database file using the database_name attribute."""
|
||||||
os.remove(self._database_name)
|
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;")
|
query_data = self.query_all(f"SELECT id,chromosome_length,population_size,generation_goal FROM config;")
|
||||||
|
|
||||||
print(
|
print(
|
||||||
tabulate(query_data, headers=['id',
|
tabulate(
|
||||||
'chromosome_length',
|
query_data,
|
||||||
'population_size',
|
headers = [
|
||||||
'generation_goal'])
|
'id',
|
||||||
|
'chromosome_length',
|
||||||
|
'population_size',
|
||||||
|
'generation_goal'
|
||||||
|
]
|
||||||
)
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
def get_most_recent_config_id(self):
|
def get_most_recent_config_id(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user