Karma: Fix @dump. Closes GH-457.

This commit is contained in:
Valentin Lorentz 2013-03-25 16:24:43 +01:00
parent 9a23ba1cfa
commit 6524dfd8c9

View File

@ -188,7 +188,7 @@ class SqliteKarmaDB(object):
def dump(self, channel, filename): def dump(self, channel, filename):
filename = conf.supybot.directories.data.dirize(filename) filename = conf.supybot.directories.data.dirize(filename)
fd = utils.transactionalFile(filename) fd = utils.file.AtomicFile(filename)
out = csv.writer(fd) out = csv.writer(fd)
db = self._getDb(channel) db = self._getDb(channel)
cursor = db.cursor() cursor = db.cursor()