3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

conf: fix getDatabaseName calling the wrong variable name

(cherry picked from commit 21b8b51cba)
This commit is contained in:
James Lu 2017-08-30 19:21:43 -07:00
parent 5084cc2c69
commit 136e5fbee7

View File

@ -144,6 +144,6 @@ def getDatabaseName(dbname):
if this is called from an instance running as './pylink testing.yml', it if this is called from an instance running as './pylink testing.yml', it
would return '<dbname>-testing.db'.""" would return '<dbname>-testing.db'."""
if confname != 'pylink': if confname != 'pylink':
dbname += '-%s' % conf.confname dbname += '-%s' % confname
dbname += '.db' dbname += '.db'
return dbname return dbname