def main(): mongo_setup.global_init() print_header() #down.downloader() #get_data() #get_data_distr() #generator.make_schools_full() #svc.generate_scores_all() #program_hosts.rate_class() #program_hosts.update_average_scores_everywhere() #an.analysis_students() #an.analysis_districts() #svc.add_districts_all() try: while True: if find_user_intent() == 'client': program_for_quest.run() else: program_hosts.run() except KeyboardInterrupt: return
def run(): mongo_setup.global_init() try: while True: if find_user_intent() == 'book': program_guests.run() else : program_hosts.run() except KeyboardInterrupt: return
def main(): # TODO: Setup mongoengine global values mongo_setup.global_init() print_header() try: while True: if find_user_intent() == 'book': program_guests.run() else: program_hosts.run() except KeyboardInterrupt: return
def main(): mongo_setup.global_init() print_header() try: while True: if find_user_intent() == 'book': program_guests.run() else: program_hosts.run() except KeyboardInterrupt: return
def main(): # TODO: Setup mongoengine global values print_header() try: while True: if find_user_intent() == 'book': program_guests.run() else: program_hosts.run() except KeyboardInterrupt: return
def main(): mongo_setup.global_init() print_header() try: while True: if find_user_intent() == "book": program_guests.run() else: program_hosts.run() except KeyboardInterrupt: return
def main(): mongo_setup.global_init() try: while True: choice = find_user_intent() if choice == 'book': program_guests.run() elif choice == 'offer': program_hosts.run() else: update() except KeyboardInterrupt: return
def main(): # This is how the connections are registered mongo_setup.global_init() print_header() try: while True: if find_user_intent() == 'book': program_guests.run() else: program_hosts.run() except KeyboardInterrupt: return
def main(): # Setup mongoengine global values mongo_setup.global_init() print_header() try: while True: user_intent = find_user_intent() if user_intent == UserIntent.BOOK: program_guests.run() elif user_intent == UserIntent.OFFER: program_hosts.run() else: program_hosts.unknown_command() except KeyboardInterrupt: sys.exit(0)
def main(): mongo_setup.global_init() print_header() program_hosts.run()