Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: added missing vessel age filters to cargo_timeseries endpoint #323

Merged
merged 4 commits into from
Oct 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"pandas>=0.25.2",
"requests==2.22.0",
"statsmodels==0.12.2",
"tqdm==4.38.0",
"tqdm==4.38.0"
],
extras_require={
"tests": [
Expand All @@ -42,6 +42,7 @@
"pre-commit==1.20.0",
"pytest==5.2.4",
"pydoc-markdown==2.0.5",
"pyyaml<6.0.0",
"six==1.12.0",
"tabulate==0.8.7",
"xlrd==1.2.0",
Expand Down
8 changes: 8 additions & 0 deletions vortexasdk/endpoints/cargo_timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def search(
filter_products: Union[ID, List[ID]] = None,
filter_vessels: Union[ID, List[ID]] = None,
filter_vessel_classes: Union[ID, List[ID]] = None,
filter_vessel_age_min: int = None,
filter_vessel_age_max: int = None,
filter_storage_locations: Union[ID, List[ID]] = None,
filter_ship_to_ship_locations: Union[ID, List[ID]] = None,
filter_waypoints: Union[ID, List[ID]] = None,
Expand Down Expand Up @@ -77,6 +79,10 @@ def search(

filter_vessel_classes: A vessel class, or list of vessel classes to filter on.

filter_vessel_age_min: A number between 1 and 100 (representing years).

filter_vessel_age_max: A number between 1 and 100 (representing years).

filter_storage_locations: A geography ID, or list of geography IDs to filter on.

filter_ship_to_ship_locations: A geography ID, or list of geography IDs to filter on.
Expand Down Expand Up @@ -169,6 +175,8 @@ def search(
"filter_vessel_classes": convert_to_list(
filter_vessel_classes
),
"filter_vessel_age_min": filter_vessel_age_min,
"filter_vessel_age_max": filter_vessel_age_max,
"filter_destinations": convert_to_list(filter_destinations),
"filter_origins": convert_to_list(filter_origins),
"filter_storage_locations": convert_to_list(
Expand Down
2 changes: 1 addition & 1 deletion vortexasdk/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.31.3"
__version__ = "0.31.4"