new_funders_api #17

Merged
michele.artini merged 7 commits from new_funders_api into master 2024-02-22 11:23:32 +01:00
2 changed files with 5 additions and 5 deletions
Showing only changes of commit 817864942d - Show all commits

View File

@ -97,10 +97,8 @@ public class FunderService {
writer.write("]");
log.info("Publish funders file: " + tmp.getAbsolutePath());
synchronized (this) {
deleteFile(tempFile);
setTempFile(tmp);
}
deleteFile(tempFile);
setTempFile(tmp);
}
} catch (final IOException e) {
log.error("Error generating funders file", e);
@ -134,7 +132,7 @@ public class FunderService {
funder.setAggregationDates(dates);
}
public synchronized File getTempFile() {
public File getTempFile() {
return tempFile;
}

View File

@ -19,3 +19,5 @@ FROM
LEFT OUTER JOIN dsm_organizationpids opids ON (o.id = opids.organization)
LEFT OUTER JOIN dsm_identities pids ON (opids.pid = pids.pid)
GROUP BY o.id;
GRANT ALL ON funders_view TO dnetapi;