Add local config a finish report_score

This commit is contained in:
2021-06-30 12:46:58 +02:00
parent e36fed491b
commit b65ccdda1d
6 changed files with 332 additions and 6 deletions

View File

@@ -45,12 +45,15 @@ class MySQL:
if self._config_db["sqlite"] == "None":
del self._config_db["sqlite"]
self._config_db["buffered"] = True
# self._config_db["auth_plugin"] = "mysql_native_password"
self._database = mysql.connector.connect(**self._config_db)
# kk = mysql.connector.connect(**self._config_db)
# self._database = sqlite3.connect("./data/stree.sqlite")
# self._database.row_factory = sqlite3.Row
else:
self._database = sqlite3.connect(self._config_db["sqlite"])
# return dict as a result of select
self._database.row_factory = sqlite3.Row
return self._database
def find_best(

View File

@@ -0,0 +1,6 @@
host=127.0.0.1
port=3306
user=stree
password=xtree
database=stree
sqlite=None

View File

@@ -0,0 +1,5 @@
ssh_address_or_host=("<host>","<port>")
ssh_username=<user>
ssh_private_key=<path_to>/id_rsa
remote_bind_address=('127.0.0.1', 3306)
enabled=0