diff options
author | psrcek <p.srcek@gmail.com> | 2016-06-22 15:35:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-06-22 15:35:52 +0200 |
commit | 5da7180bfd89e8fe3ac57a84ba3a2d027bdb1715 (patch) | |
tree | e2f953fd2dd7b8df1947b34d180569ac0fc2730b | |
parent | ae44dade8005bcdcb2cb7328c70c428c2ed723f4 (diff) |
derp... integer division
-rw-r--r-- | saylol.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -84,7 +84,7 @@ def on_lol_command(sender, command, label, args): if offset > len(lols): msg(sender, "&cNot a valid page (too high).") return True - msg(sender, " &9&nLol list page %s/%s" % (str(arg1 + 1), str(int(math.ceil(len(lols) / list_limit))))) #"\t" symbol displays weirdly, hence the 4 spaces + msg(sender, " &9&nLol list page %s/%s" % (str(arg1 + 1), str(int(math.ceil(len(lols) / float(list_limit)))))) #"\t" symbol displays weirdly, hence the 4 spaces for i in range(offset, min(offset + list_limit, len(lols))): msg(sender, "&a%s: &e%s" % (str(i).rjust(3), lols[i])) msg(sender, "") |