Skip to content
This repository has been archived by the owner on Dec 20, 2024. It is now read-only.

Commit

Permalink
Linting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
bram-vdberg committed Nov 1, 2024
1 parent 8af613e commit e45b298
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/deploy_prefect/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
@flow(retries=3, retry_delay_seconds=60, log_prints=True) # type: ignore[misc]
def dev_order_rewards() -> None:
"""Defines a flow for updating the order_rewards table"""
config = Config(ENV.DEV, CHAIN.MAINNET)
config = Config(CHAIN.MAINNET, ENV.DEV)

blockrange = get_block_range()
orderbook = fetch_orderbook(blockrange)
Expand All @@ -28,7 +28,7 @@ def dev_order_rewards() -> None:
@flow(retries=3, retry_delay_seconds=60, log_prints=True) # type: ignore[misc]
def prod_order_rewards() -> None:
"""Defines a flow for updating the order_rewards table"""
config = Config(ENV.PROD, CHAIN.MAINNET)
config = Config(CHAIN.MAINNET, ENV.PROD)
blockrange = get_block_range()
orderbook = fetch_orderbook(blockrange)
data = cast_orderbook_to_dune_string(orderbook)
Expand Down
2 changes: 1 addition & 1 deletion src/deploy_prefect/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Config:
_dune_query_id: str = field(init=False)
_etherscan_api_key: str = field(init=False)

def __post_init__(self):
def __post_init__(self) -> None:
etherscan_api_value = os.environ["ETHERSCAN_API_KEY"]

if self._env.is_dev():
Expand Down

0 comments on commit e45b298

Please sign in to comment.