Skip to content

Commit 68dc807

Browse files
committed
Add new option for forcing new version
1 parent 399e4fd commit 68dc807

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

caltechdata_api/caltechdata_edit.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ def caltechdata_edit(
6161
file_links=[],
6262
s3=None,
6363
community=None,
64+
new_version=False
6465
):
6566

6667
# If no token is provided, get from RDMTOK environment variable
@@ -128,7 +129,7 @@ def caltechdata_edit(
128129

129130
for idv in ids:
130131

131-
if files:
132+
if files or new_version:
132133
# We need to make new version
133134
data["files"] = {"enabled": True}
134135
result = requests.post(

0 commit comments

Comments
 (0)