Skip to content
GitLab
    • Explore Projects Groups Topics Snippets
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • B blawiki
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Alasdair
  • blawiki
  • Merge requests
  • !6

Remove check for negative index as it's already handled from the parser of args

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Phil Burton requested to merge FBeans/wikiquery:master into master 4 years ago
  • Overview 0
  • Commits 2
  • Changes 1
Compare
  • version 1
    fea55856
    4 years ago

  • master (base)

and
  • latest version
    6aa1ba47
    2 commits, 4 years ago

  • version 1
    fea55856
    1 commit, 4 years ago

1 file
+ 2
− 6

    Preferences

    File browser
    Compare changes
wikiquery
+ 2
− 6
  • View file @ 6aa1ba47

  • Edit in single-file editor

  • Open in Web IDE


@@ -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,11 +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
if index < 1:
print ("Cannot search for index < 1")
sys.exit(0)
index = int(args.pop(0)) if args else None
if options.search:
search(topic, index)
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
2
2 Participants
Joe Robinson
Phil Burton
Reference: CarpNet/wikiquery!6
Source branch: master

Menu

Explore Projects Groups Topics Snippets