Skip to content

Commit

Permalink
Limit --random to 10 systems at a time
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Feb 20, 2015
1 parent ae38c38 commit f0fc383
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edscupdate.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def parse_arguments():
'--random',
action='store_true',
required=False,
help='Show systems in random order.',
help='Show systems in random order, maximum of 10.',
)
parser.add_argument(
'--test',
Expand Down Expand Up @@ -286,7 +286,7 @@ def main():
return

if argv.random:
random.shuffle(systems)
random.sample(systems, 10)

if argv.splash:
print(
Expand Down

0 comments on commit f0fc383

Please sign in to comment.