diff --git a/crawlers/mooncrawl/mooncrawl/stats_worker/dashboard.py b/crawlers/mooncrawl/mooncrawl/stats_worker/dashboard.py index 73592e5f..e919749c 100644 --- a/crawlers/mooncrawl/mooncrawl/stats_worker/dashboard.py +++ b/crawlers/mooncrawl/mooncrawl/stats_worker/dashboard.py @@ -457,22 +457,15 @@ def get_blocks_state( return blocks_state -def generate_list_of_names( - type: str, subscription_filters: Dict[str, Any], read_abi: bool, abi_json: Any -): +def generate_list_of_names(type: str, subscription_filters: Dict[str, Any]): """ Generate list of names for select from database by name field """ - if read_abi: - names = [item["name"] for item in abi_json if item["type"] == type] - else: - - names = [ - item["name"] - for item in subscription_filters[abi_type_to_dashboards_type[type]] - ] + names = [ + item["name"] for item in subscription_filters[abi_type_to_dashboards_type[type]] + ] return names @@ -623,6 +616,7 @@ def stats_generate_handler(args: argparse.Namespace): continue subscriptions_count += 1 + s3_data_object: Dict[str, Any] = {} extention_data = [] @@ -658,15 +652,11 @@ def stats_generate_handler(args: argparse.Namespace): methods = generate_list_of_names( type="function", subscription_filters=dashboard_subscription_filters, - read_abi=dashboard_subscription_filters["all_methods"], - abi_json=abi_json, ) events = generate_list_of_names( type="event", subscription_filters=dashboard_subscription_filters, - read_abi=dashboard_subscription_filters["all_events"], - abi_json=abi_json, ) abi_external_calls = [