WebStats: fix sharp escaping

master
Valentin Lorentz 2011-02-02 20:07:31 +01:00
parent 9d5680829f
commit 13e68232c6
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ def get(useSkeleton, channel, db, urlLevel, page, orderby=None):
bound = db.getChanRecordingTimeBoundaries(channel)
output = '<h1>%s</h1>' % _('Stats about %s channel')
output %= channel
output += '<p><a href="/nicks/%s/">%s</a></p>' % (channel[1:],
output += '<p><a href="/nicks/%s/">%s</a></p>' % (channel[1:].replace('#', ' '),
_('View nick-by-nick stats'))
output += '<p>%s</p>' % _('There were %n, %n, %n, %n, %n, %n, %n, '
'and %n.')

View File

@ -7,7 +7,7 @@ def get(useSkeleton, channel, db, urlLevel, page, orderby=None):
bound = db.getChanRecordingTimeBoundaries(channel)
output = '<h1>%s</h1>' % _('Stats about %s channel users')
output %= channel
output += '<p><a href="/global/%s/">%s</a></p>' % (channel[1:],
output += '<p><a href="/global/%s/">%s</a></p>' % (channel[1:].replace('#', ' '),
_('View global stats'))
items = db.getChanNickGlobalData(channel, 20)
html, nbDisplayed = getTable(_('Nick'),items,channel,urlLevel,page,orderby)