Skip to content

Commit

Permalink
#32 Updated offset
Browse files Browse the repository at this point in the history
  • Loading branch information
rdovgan committed May 7, 2024
1 parent 02c0379 commit 8be81d8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions service/sybil_finder.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
QUERY = os.getenv("DUNE_QUERY")
ENDPOINT = f"https://api.dune.com/api/v1/execution/{QUERY}/results/csv"
FILENAME = "data/result_average_amount_10.csv"
LIMIT = 1000
LIMIT = 3000

# Initialize offset and total count
offset = 357000
offset = 1434000
last_count = LIMIT

# Open the file in write mode
Expand Down Expand Up @@ -47,7 +47,8 @@
offset += LIMIT
time.sleep(3)
else:
print("Failed to retrieve data. Status code:", response.status_code)
print(f"Failed to retrieve data. Status code: {response.status_code}")
print(f"Last offset: {offset}")
break

print("Data retrieval completed.")
Expand Down

0 comments on commit 8be81d8

Please sign in to comment.