Esempio n. 1
0
def steamtop(inp, db=None):
    "steamtop -- Shows the top five users from steamcalc."
    rows = []
    for row in db.execute("SELECT id, value, count FROM steam_rankings ORDER BY value DESC LIMIT 5"):
        rows.append(u"{} - \x02${:.2f}\x02 ({} games)".format(text.munge(row[0], 1), row[1], row[2]))

    return u"Top Steam Users: {}".format(", ".join(rows))
Esempio n. 2
0
def steamtop(inp, db=None):
    "steamtop -- Shows the top five users from steamcalc."
    rows = []
    for row in db.execute(
            "SELECT id, value, count FROM steam_rankings ORDER BY value DESC LIMIT 5"
    ):
        rows.append(u"{} - \x02${:.2f}\x02 ({} games)".format(
            text.munge(row[0], 1), row[1], row[2]))

    return u"Top Steam Users: {}".format(", ".join(rows))
Esempio n. 3
0
def munge(inp):
    """munge <text> -- Munges up <text>."""
    return text.munge(inp)
Esempio n. 4
0
def munge(inp):
    "munge <text> -- Munges up <text>."
    return text.munge(inp)