Browse Source

Update index.py

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

+ 5
- 1
scripts/index.py View File

@@ -77,10 +77,14 @@ def now_option(options, c, g, times):
lst = get_lst(c, g, options)
controls.available_now_control(options, lst, times)
def main():
def required():
parser = setup_options()
(options, arguments) = parser.parse_args()
times, c, g, details = get_data()
return parser, (options, arguments), times, c, g, details

def main():
parser, (options, arguments), times, c, g, details = required()
if options.book:
booking_option(c, g, details)
elif len(details) > 5:


Loading…
Cancel
Save