Short fix for rstrip
This commit is contained in:
parent
f378d3fa17
commit
1dd2cbed57
1 changed files with 1 additions and 1 deletions
|
@ -54,10 +54,10 @@ class FleastServer(object):
|
||||||
|
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
def fleast(self, game=None, lang=None):
|
def fleast(self, game=None, lang=None):
|
||||||
game = game.rstrip()
|
|
||||||
if game is None or game == '':
|
if game is None or game == '':
|
||||||
return self.index_page.format(_version_ = ver, _opt_langs_ = self.set_templ_lang('ru'))
|
return self.index_page.format(_version_ = ver, _opt_langs_ = self.set_templ_lang('ru'))
|
||||||
|
|
||||||
|
game = game.rstrip()
|
||||||
cherrypy.log('Getting game:"%s" language:%s' % (game, lang))
|
cherrypy.log('Getting game:"%s" language:%s' % (game, lang))
|
||||||
data = self.client.get_streams(game, lang)
|
data = self.client.get_streams(game, lang)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue