Fixed database_name
This commit is contained in:
@ -167,7 +167,7 @@ class Attributes:
|
|||||||
"""Setter function with error checking for the database name"""
|
"""Setter function with error checking for the database name"""
|
||||||
|
|
||||||
# Update the database class of the name change
|
# Update the database class of the name change
|
||||||
self.database.database_name = value_input
|
self.database._database_name = value_input
|
||||||
|
|
||||||
# Set the name in the ga attribute
|
# Set the name in the ga attribute
|
||||||
self._database_name = value_input
|
self._database_name = value_input
|
||||||
|
|||||||
@ -12,7 +12,7 @@ class SQL_Database:
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.conn = None
|
self.conn = None
|
||||||
self.config_id = None
|
self.config_id = None
|
||||||
self.database_name = 'database.db'
|
self._database_name = 'database.db'
|
||||||
|
|
||||||
|
|
||||||
def get_current_config(self):
|
def get_current_config(self):
|
||||||
@ -253,6 +253,16 @@ class SQL_Database:
|
|||||||
return formated_query_data;
|
return formated_query_data;
|
||||||
|
|
||||||
|
|
||||||
|
@property
|
||||||
|
def database_name(self):
|
||||||
|
return self._database_name
|
||||||
|
|
||||||
|
|
||||||
|
@database_name.setter
|
||||||
|
def database_name(self, value_input):
|
||||||
|
raise Exception("Invalid usage, please use ga.database_name instead.")
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def conn(self):
|
def conn(self):
|
||||||
"""Getter function for conn"""
|
"""Getter function for conn"""
|
||||||
|
|||||||
Reference in New Issue
Block a user