Beispiel #1
0
def two_arg_go(command, param):

    if command == "fetch":
        scrape_manage.do_fetch([param])

    elif command == 'reset-run-state':
        db_manage.reset_run_state(param)
    elif command == 'reset-last-fetched-times':
        scrape_manage.reset_last_fetched_times(param)
    else:
        cli_utils.print_help()
Beispiel #2
0
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()
Beispiel #3
0
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()
Beispiel #4
0
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()