diff options
author | FBeans <phil@pgburton.com> | 2020-11-12 20:15:13 +0000 |
---|---|---|
committer | FBeans <phil@pgburton.com> | 2020-11-12 20:15:13 +0000 |
commit | 6aa1ba47a2f02d64d7b8b1d332a402956fc18cee (patch) | |
tree | 9bf9c411677aac8d03cba6cb8857b6e4672f468e /wikiquery | |
parent | fea55856a9b2e24820ef73869bfb47079bf5fe1c (diff) |
Just show the user the real indexes (starting from 0). This fixes the need to change anythingHEADmaster
Diffstat (limited to 'wikiquery')
-rwxr-xr-x | wikiquery | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -12,7 +12,7 @@ version = "0.1.7" def stringify(o): if isinstance(o, list): output = [] - for i, item in enumerate(o, 1): + for i, item in enumerate(o, 0): output.append("%s: %s" % (i, item)) return ' %s' % ', '.join(output) @@ -89,7 +89,7 @@ def main(): while len(args) > 0 and not(args[0].isdigit()): topic += " " + args.pop(0) - index = int(args.pop(0)) -1 if args else None + index = int(args.pop(0)) if args else None if options.search: search(topic, index) |