Strip HTML from online status. @Red_M
This commit is contained in:
parent
178ff6f4e1
commit
273ca05858
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
from util import hook, http
|
from util import hook, http, text
|
||||||
import csv
|
import csv
|
||||||
import StringIO
|
import StringIO
|
||||||
|
|
||||||
|
@ -63,7 +63,8 @@ def steamcalc(inp, reply=None):
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
return "Could not get data for this user."
|
return "Could not get data for this user."
|
||||||
|
|
||||||
data["state"] = online_state.replace("<br/>", ": ") # will make this pretty later
|
online_state = online_state.replace("<br/>", ": ") # will make this pretty later
|
||||||
|
data["state"] = text.strip_html(online_state)
|
||||||
|
|
||||||
# work out the average metascore for all games
|
# work out the average metascore for all games
|
||||||
ms = [float(game["metascore"]) for game in games if is_number(game["metascore"])]
|
ms = [float(game["metascore"]) for game in games if is_number(game["metascore"])]
|
||||||
|
|
Reference in a new issue