[gozerbot] push by bthate - fix infoitems on 2011-10-12 15:04 GMT

0 views
Skip to first unread message

goze...@googlecode.com

unread,
Oct 12, 2011, 11:04:49 AM10/12/11
to gozerbo...@googlegroups.com
Revision: ee100a2bf620
Author: Bart Thate <bth...@gmail.com>
Date: Wed Oct 12 08:03:54 2011
Log: fix infoitems
http://code.google.com/p/gozerbot/source/detail?r=ee100a2bf620

Modified:
/gplugs/olddb/infoitem.py

=======================================
--- /gplugs/olddb/infoitem.py Mon Aug 29 13:35:15 2011
+++ /gplugs/olddb/infoitem.py Wed Oct 12 08:03:54 2011
@@ -17,7 +17,7 @@
from gozerbot.callbacks import callbacks
from gozerbot.users import users
from gozerbot.config import config
-if config['dbenable']:
+if not config['nodb']:
from gozerbot.database.db import db
import thread, os, time

@@ -158,7 +158,7 @@
FROM infoitems WHERE description LIKE %s """, '%%%s%%' % search)
return result

-if config['dbenable']:
+if not config['nodb']:
info = InfoitemsDb()
else:
info = Infoitems(datadir + os.sep + 'infoitems')

Reply all
Reply to author
Forward
0 new messages