We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b612e7 commit 8b399c0Copy full SHA for 8b399c0
1 file changed
caltechdata_api/caltechdata_edit.py
@@ -326,17 +326,10 @@ def caltechdata_edit(
326
# We make a draft
327
result = requests.post(
328
url + "/api/records/" + idv + "/draft",
329
- json=data,
330
headers=headers,
331
)
332
if result.status_code != 201:
333
raise Exception(result.text)
334
- result = requests.get(
335
- url + "/api/records/" + idv,
336
- headers=headers,
337
- )
338
- if result.status_code != 200:
339
- raise Exception(result.text)
340
# We want files to stay the same as the existing record
341
data["files"] = existing["files"]
342
if default_preview:
0 commit comments