Skip to content

Commit

Permalink
PLAT-1315 Add json_stream
Browse files Browse the repository at this point in the history
  • Loading branch information
victoreram committed Nov 18, 2024
1 parent b89f505 commit 68c670b
Show file tree
Hide file tree
Showing 5 changed files with 432 additions and 97 deletions.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ build-test-push-image:
- docker build --cache-from $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME -t $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME -t $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA --build-arg CM_API_KEY=$CM_API_KEY .
- docker run $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA python -m mypy -p coinmetrics -p test --install-types --non-interactive
- docker run $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA python -m flake8 coinmetrics
- docker run $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA python -m pytest -n auto --timeout=60 test --ignore test/test_data_exporter.py --ignore test/test_rate_limits.py --ignore test/test_catalog.py
- docker run $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA python -m pytest -n auto --timeout=60 test --ignore test/test_data_exporter.py --ignore test/test_rate_limits.py --ignore test/test_catalog.py --ignore test/test_catalog_benchmarks.py
- docker run $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA python -m pytest test/test_rate_limits.py
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_SHA
- docker push $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
Expand Down
2 changes: 1 addition & 1 deletion coinmetrics/_data_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def first_page(self) -> List[Dict[str, Any]]:
)

def to_list(self) -> List[Dict[str, Any]]:
return [data for data in self]
return list(self)

def __next__(self) -> Any:
try:
Expand Down
Loading

0 comments on commit 68c670b

Please sign in to comment.