Skip to content

Commit 72eec60

Browse files
authored
Add files via upload
1 parent bc3b2d3 commit 72eec60

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

helpers.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ def printmd(string):
8484
"Wyoming Geolibrary (U)": "wyoming",
8585
"cn.dataone.org (P)": "dataone",
8686
"cn.dataone.org (U)": "dataone",
87-
"example_tests": "individual"
87+
"example_tests": "individual",
88+
"BCO DMO (P)": "individual"
8889
}
8990

9091
def getLinksFromURL(URL):
@@ -95,7 +96,7 @@ def getLinksFromURL(URL):
9596
for i in range(1, len(linkstr)):
9697
ind = linkstr[i].find("%22")
9798
linkstr[i] = linkstr[i][ind+3:linkstr[i].find("%22", ind+3)]
98-
#print(linkstr[i])
99+
print(linkstr[i])
99100
return linkstr[1:]
100101

101102

@@ -208,10 +209,10 @@ def uploadToSuave(new_file, survey_name, user, views, view, referer, upload_url,
208209
s_url = regex.sub('_', s_url)
209210

210211
url = new_survey_url_base + user + "_" + survey_name + ".csv" + "&views=" + views + "&view=" + view
212+
211213
return url
212-
#print(url)
213-
#printmd("Click the URL to open the new survey")
214+
#print("Click the URL to open the new survey")
214215
else:
215-
#printmd("Error creating new survey. Check if a survey with this name already exists.")
216-
#printmd("Reason: " + str(r.status_code) + " " + r.reason)
217-
return "someth"
216+
print("Error creating new survey. Check if a survey with this name already exists.")
217+
print("Reason: " + str(r.status_code) + " " + r.reason)
218+
return "something"

0 commit comments

Comments
 (0)