kopia lustrzana https://github.com/bugout-dev/moonstream
Romove unused variables.
rodzic
04f7e10cd0
commit
2ddb6a49c7
|
@ -8,7 +8,7 @@ import logging
|
||||||
import time
|
import time
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
from enum import Enum
|
from enum import Enum
|
||||||
from typing import Any, Callable, Dict, List, Union
|
from typing import Any, Callable, Dict, List
|
||||||
from uuid import UUID
|
from uuid import UUID
|
||||||
|
|
||||||
import boto3 # type: ignore
|
import boto3 # type: ignore
|
||||||
|
@ -21,7 +21,6 @@ from web3 import Web3
|
||||||
|
|
||||||
from ..blockchain import (
|
from ..blockchain import (
|
||||||
connect,
|
connect,
|
||||||
get_block_model,
|
|
||||||
get_label_model,
|
get_label_model,
|
||||||
get_transaction_model,
|
get_transaction_model,
|
||||||
)
|
)
|
||||||
|
@ -671,11 +670,9 @@ def stats_generate_handler(args: argparse.Namespace):
|
||||||
|
|
||||||
|
|
||||||
def stats_generate_api_task(
|
def stats_generate_api_task(
|
||||||
token: UUID,
|
|
||||||
timescales: List[str],
|
timescales: List[str],
|
||||||
dashboard: BugoutResource,
|
dashboard: BugoutResource,
|
||||||
subscription_by_id: Dict[str, BugoutResource],
|
subscription_by_id: Dict[str, BugoutResource],
|
||||||
dashboard_id: str,
|
|
||||||
):
|
):
|
||||||
"""
|
"""
|
||||||
Start crawler with generate.
|
Start crawler with generate.
|
||||||
|
@ -717,8 +714,6 @@ def stats_generate_api_task(
|
||||||
):
|
):
|
||||||
crawler_label = "moonworm"
|
crawler_label = "moonworm"
|
||||||
|
|
||||||
generic = dashboard_subscription_filters["generic"]
|
|
||||||
|
|
||||||
if not subscription_by_id[subscription_id].resource_data["abi"]:
|
if not subscription_by_id[subscription_id].resource_data["abi"]:
|
||||||
|
|
||||||
methods = []
|
methods = []
|
||||||
|
|
Ładowanie…
Reference in New Issue