3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-28 13:42:37 +01:00

conf: fix getDatabaseName calling the wrong variable name

This commit is contained in:
James Lu 2017-08-30 19:21:43 -07:00
parent 9a84dbde71
commit 21b8b51cba

View File

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