Rev3831, Fix Stats page compatibility with latest gevent

This commit is contained in:
shortcutme 2019-01-31 00:39:45 +01:00
parent 8447c6d79f
commit c2b879ccab
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
3 changed files with 6 additions and 5 deletions

View file

@ -13,7 +13,7 @@ class Config(object):
def __init__(self, argv):
self.version = "0.6.4"
self.rev = 3829
self.rev = 3831
self.argv = argv
self.action = None
self.pending_changes = {}

View file

@ -31,7 +31,7 @@ import SiteManager
class Site(object):
def __init__(self, address, allow_create=True, settings=None):
self.address = re.sub("[^A-Za-z0-9]", "", address) # Make sure its correct address
self.address = str(re.sub("[^A-Za-z0-9]", "", address)) # Make sure its correct address
self.address_hash = hashlib.sha256(self.address).digest()
self.address_short = "%s..%s" % (self.address[:6], self.address[-4:]) # Short address for logging
self.log = logging.getLogger("Site:%s" % self.address_short)