def three_arg_go(command, param_1, param_2): if command == "import": importer = name_importer.NameImporter() importer.import_names_from_file(param_1, param_2) db_manage.db_name_clean() else: cli_utils.print_help()
def three_arg_go(command, param_1, param_2): if command == "import": importer = name_importer.NameImporter() importer.import_names_from_file(param_1, param_2) db_manage.db_name_clean() elif command == "dump": db_manage.export_db_contents(to_path=param_1, site_name=param_2) else: cli_utils.print_help()
def one_arg_go(command): if command == "rss-import": importer = name_importer.NameImporter() importer.update_from_tt_rss() elif command == "fetch": do_fetch([]) elif command == "fetch-all": do_fetch_all() elif command == 'name-clean': db_manage.db_name_clean() elif command == 'db-misrelink-clean': db_manage.db_misrelink_clean() elif command == 'reset-run-state': db_manage.reset_run_state() else: cli_utils.print_help()
def one_arg_go(command): if command == "rss-import": importer = name_importer.NameImporter() importer.update_from_tt_rss() elif command == "tumblr-import": importer = name_importer.NameImporter() importer.update_names_from_tumblr_followed() elif command == "fetch": do_fetch([]) elif command == "fetch-all": do_fetch_all() elif command == 'name-clean': db_manage.db_name_clean() elif command == 'db-misrelink-clean': db_manage.db_misrelink_clean() elif command == 'reset-run-state': db_manage.reset_run_state() else: cli_utils.print_help()
def one_arg_go(command): if command == "rss-import": importer = name_importer.NameImporter() importer.update_from_tt_rss() elif command == "tumblr-import": importer = name_importer.NameImporter() importer.update_names_from_tumblr_followed() elif command == "fetch": scrape_manage.do_fetch([]) elif command == "fetch-all": scrape_manage.do_fetch_all() elif command == 'name-clean': db_manage.db_name_clean() elif command == 'db-misrelink-clean': db_manage.db_misrelink_clean() elif command == 'reset-run-state': db_manage.reset_run_state() elif command == 'reset-last-fetched-times': scrape_manage.reset_last_fetched_times() else: cli_utils.print_help()