Skip to content

Commit 1013d92

Browse files
authored
Merge pull request #189 from rstudio/max-version
2 parents b533875 + 8b6cb61 commit 1013d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vetiver/write_fastapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def _choose_version(df: pd.DataFrame):
1717
version_desc = df.sort_values(by="created", ascending=False)
1818
version = version_desc.version[0]
1919
else:
20-
version = df.version[0]
20+
version = df.version.max()
2121
warnings.warn(
2222
f"""Pinned vetiver model has no active version and no datetime on versions,
2323
Do you need to check your pinned model?

0 commit comments

Comments
 (0)