Skip to content

Commit

Permalink
Fix parameter name
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-snx committed Nov 21, 2024
1 parent a96d411 commit cfa29dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions indexers/scripts/clean.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import os


def clean_parquet_files(network_name: str, protocol: str):
source_base = f"/parquet-data/indexers/raw/{network_name}/{protocol}"
target_base = f"/parquet-data/indexers/clean/{network_name}/{protocol}"
def clean_parquet_files(network_name: str, protocol_name: str):
source_base = f"/parquet-data/indexers/raw/{network_name}/{protocol_name}"
target_base = f"/parquet-data/indexers/clean/{network_name}/{protocol_name}"

protocol_path = Path(source_base)
if not protocol_path.exists():
Expand All @@ -32,7 +32,7 @@ def clean_parquet_files(network_name: str, protocol: str):
continue
event_dir.mkdir(parents=True, exist_ok=True)
df.to_parquet(output_file, index=False)
print(f"Processed {protocol} {block_range}")
print(f"Processed {protocol_name} {block_range}")


if __name__ == "__main__":
Expand Down

0 comments on commit cfa29dc

Please sign in to comment.