Skip to content

Commit 0088f3f

Browse files
committed
Cleanup
1 parent 51417dc commit 0088f3f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

caltechdata_write/caltechdata_edit.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,9 @@ def Caltechdata_edit(token,ids,metadata={},files={},delete={},production=False):
6060

6161
dat = json.dumps({'record': metadata})
6262

63-
outf = open('out.json','w')
64-
outf.write(dat)
63+
#outf = open('out.json','w')
64+
#outf.write(dat)
6565

66-
print(dat)
6766
c = session()
6867
response = c.post(url, headers=headers, data=dat)
6968
print(response.text)
@@ -107,10 +106,9 @@ def Caltechdata_add(token,ids,metadata={},files={},production=False):
107106

108107
dat = json.dumps({'record': metadata})
109108

110-
outf = open('out.json','w')
111-
outf.write(dat)
109+
#outf = open('out.json','w')
110+
#outf.write(dat)
112111

113-
#print(dat)
114112
c = session()
115113
response = c.post(url, headers=headers, data=dat)
116114
print(response.text)

0 commit comments

Comments
 (0)