mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-05-06 03:23:41 -05:00
Consolidate dbfilename
This commit is contained in:
parent
bd0249965b
commit
43184dab58
@ -68,7 +68,7 @@ class Weather(callbacks.Plugin):
|
||||
def __init__(self, irc):
|
||||
self.__parent = super(Weather, self)
|
||||
self.__parent.__init__(irc)
|
||||
self.db = WeatherDB(dbfilename)
|
||||
self.db = WeatherDB(conf.supybot.directories.data.dirize("Weather.db"))
|
||||
self.APIKEY = self.registryValue('apiKey')
|
||||
world.flushers.append(self.db.flush)
|
||||
|
||||
@ -584,8 +584,6 @@ class Weather(callbacks.Plugin):
|
||||
'dewpoint':'',
|
||||
'metric':''}), optional('text')])
|
||||
|
||||
dbfilename = conf.supybot.directories.data.dirize("Weather.db")
|
||||
|
||||
Class = Weather
|
||||
|
||||
# vim:set shiftwidth=4 softtabstop=4 expandtab textwidth=250:
|
||||
|
Loading…
x
Reference in New Issue
Block a user