fix karma formatting
This commit is contained in:
parent
e453778791
commit
e557137f82
@ -14,15 +14,13 @@
|
|||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from ConfigParser import NoOptionError
|
|
||||||
|
|
||||||
import re
|
import re
|
||||||
import shelve
|
import shelve
|
||||||
|
|
||||||
from Module import Module
|
from Module import Module
|
||||||
|
|
||||||
__author__="Mike Bloy <mike@bloy.org>"
|
__author__ = "Mike Bloy <mike@bloy.org>"
|
||||||
__date__ ="$Oct 23, 2010 11:12:33 AM$"
|
__date__ = "$Oct 23, 2010 11:12:33 AM$"
|
||||||
|
|
||||||
class Karma(Module):
|
class Karma(Module):
|
||||||
|
|
||||||
@ -34,8 +32,8 @@ class Karma(Module):
|
|||||||
Module.__init__(self, config, server, modlist)
|
Module.__init__(self, config, server, modlist)
|
||||||
|
|
||||||
filename = self.config.get(self.__class__.__name__, 'karmafile')
|
filename = self.config.get(self.__class__.__name__, 'karmafile')
|
||||||
self.karmafile=filename + "_karma.dat"
|
self.karmafile = filename + "_karma.dat"
|
||||||
self.trendfile=filename + "_trends.dat"
|
self.trendfile = filename + "_trends.dat"
|
||||||
|
|
||||||
pattern = "^([a-zA-Z0-9_]+)"
|
pattern = "^([a-zA-Z0-9_]+)"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user