Browse Source

Update index.py

pull/18/head
James Mc Dermott 3 years ago
committed by GitHub
parent
commit
fd8905e5fb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 5 deletions
  1. +3
    -5
      scripts/index.py

+ 3
- 5
scripts/index.py View File

@@ -85,11 +85,9 @@ def required():

def main():
parser, (options, arguments), times, c, g, details = required()
if options.book:
booking_option(c, g, details)
if len(details) > 5:
print("Too many arguments passed.")
elif options.lookup:
booking_option(c, g, details) if options.book else print("")
print("Too many arguments passed.") if len(details < 4) else print("")
if options.lookup:
lookup_option(options, (c, g), details, times)
elif options.now:
now_option(options, c, g, times)


Loading…
Cancel
Save