Use a additional module to store custom config ...
This commit is contained in:
@@ -32,7 +32,7 @@ except ImportError:
|
|||||||
import MySQLdb as mysqldb
|
import MySQLdb as mysqldb
|
||||||
|
|
||||||
from pywikibot import config
|
from pywikibot import config
|
||||||
|
import jogobot
|
||||||
|
|
||||||
class MysqlRed:
|
class MysqlRed:
|
||||||
"""
|
"""
|
||||||
@@ -47,7 +47,7 @@ class MysqlRed:
|
|||||||
db_hostname = config.db_hostname
|
db_hostname = config.db_hostname
|
||||||
db_username = config.db_username
|
db_username = config.db_username
|
||||||
db_password = config.db_password
|
db_password = config.db_password
|
||||||
db_name = config.db_username + '__bot'
|
db_name = config.db_username + jogobot.db_namesuffix
|
||||||
|
|
||||||
def __init__( self ):
|
def __init__( self ):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user