Beispiel #1
0
        sys.exit(-1)

    verbose = args[0].verbose
    no_color = args[0].no_color
    if no_color:
        def colorize(string, rgb=None, ansi=None, bg=None, ansi_bg=None, fd=1):
            return string

    display_stats = args[0].all_stats

    export_data = args[0].export_data
    export_one_data = args[0].export_one_data

    impact_analysis = args[0].data_with_impact

    fmkdb = Database(fmkdb_path=fmkdb)
    fmkdb.start()

    if display_stats:
        records = fmkdb.execute_sql_statement(
            "SELECT TARGET, TYPE, TOTAL FROM STATS_BY_TARGET;"
        )

        if records:
            current_target = None
            max_len = 0
            for rec in records:
                _, data_type, _ = rec
                data_type_len = len(data_type)
                if max_len < data_type_len:
                    max_len = data_type_len
Beispiel #2
0
    display_stats = args[0].all_stats

    data_info = args[0].info
    data_info_by_date = args[0].info_by_date
    with_fbk = args[0].with_fbk
    with_data = args[0].with_data
    without_fmkinfo = args[0].without_fmkinfo
    limit_data_sz = args[0].limit

    export_data = args[0].export_data
    export_one_data = args[0].export_one_data
    remove_data = args[0].remove_data

    impact_analysis = args[0].data_with_impact

    fmkdb = Database(fmkdb_path=fmkdb)
    fmkdb.start()

    if display_stats:
        records = fmkdb.execute_sql_statement(
            "SELECT TARGET, TYPE, TOTAL FROM STATS_BY_TARGET;")

        if records:
            current_target = None
            max_len = 0
            for rec in records:
                _, data_type, _ = rec
                data_type_len = len(data_type)
                if max_len < data_type_len:
                    max_len = data_type_len
Beispiel #3
0
    display_stats = args[0].all_stats

    data_info = args[0].info
    data_info_by_date = args[0].info_by_date
    with_fbk = args[0].with_fbk
    with_data = args[0].with_data
    without_fmkinfo = args[0].without_fmkinfo
    limit_data_sz = args[0].limit

    export_data = args[0].export_data
    export_one_data = args[0].export_one_data
    remove_data = args[0].remove_data

    impact_analysis = args[0].data_with_impact

    fmkdb = Database(fmkdb_path=fmkdb)
    fmkdb.start()

    if display_stats:
        records = fmkdb.execute_sql_statement(
            "SELECT TARGET, TYPE, TOTAL FROM STATS_BY_TARGET;"
        )

        if records:
            current_target = None
            max_len = 0
            for rec in records:
                _, data_type, _ = rec
                data_type_len = len(data_type)
                if max_len < data_type_len:
                    max_len = data_type_len