Skip to content

Commit

Permalink
#1630 Updated SciStarter import method to match output of new ecodata…
Browse files Browse the repository at this point in the history
… process
  • Loading branch information
jack-brinkman committed Sep 10, 2024
1 parent c09aa04 commit 557faef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ class ProjectService {
Map importSciStarterProjects() throws SocketTimeoutException, Exception{
String url = "${grailsApplication.config.ecodata.service.url}/project/importProjectsFromSciStarter";
Map response = webService.doPostWithParams(url, [:]);
if(response.resp && response.resp.count != null){
if(response.resp && response.resp.created != null){
return response.resp
} else {
if(response.error.contains('Timed out')){
Expand Down
2 changes: 1 addition & 1 deletion grails-app/views/admin/tools.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
method:"POST"
}
).done(function(result) {
alert("Successfully imported " + result.count + " SciStarter projects!");
alert("SciStarter import complete: " + result.created + " created, " + result.updated + " updated, " + result.ignored + " ignored");
document.location.reload();
}).fail(function (result) {
alert(result.statusText);
Expand Down

0 comments on commit 557faef

Please sign in to comment.