new_funders_api #17
|
@ -97,10 +97,8 @@ public class FunderService {
|
||||||
writer.write("]");
|
writer.write("]");
|
||||||
log.info("Publish funders file: " + tmp.getAbsolutePath());
|
log.info("Publish funders file: " + tmp.getAbsolutePath());
|
||||||
|
|
||||||
synchronized (this) {
|
deleteFile(tempFile);
|
||||||
deleteFile(tempFile);
|
setTempFile(tmp);
|
||||||
setTempFile(tmp);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} catch (final IOException e) {
|
} catch (final IOException e) {
|
||||||
log.error("Error generating funders file", e);
|
log.error("Error generating funders file", e);
|
||||||
|
@ -134,7 +132,7 @@ public class FunderService {
|
||||||
funder.setAggregationDates(dates);
|
funder.setAggregationDates(dates);
|
||||||
}
|
}
|
||||||
|
|
||||||
public synchronized File getTempFile() {
|
public File getTempFile() {
|
||||||
return tempFile;
|
return tempFile;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,3 +19,5 @@ FROM
|
||||||
LEFT OUTER JOIN dsm_organizationpids opids ON (o.id = opids.organization)
|
LEFT OUTER JOIN dsm_organizationpids opids ON (o.id = opids.organization)
|
||||||
LEFT OUTER JOIN dsm_identities pids ON (opids.pid = pids.pid)
|
LEFT OUTER JOIN dsm_identities pids ON (opids.pid = pids.pid)
|
||||||
GROUP BY o.id;
|
GROUP BY o.id;
|
||||||
|
|
||||||
|
GRANT ALL ON funders_view TO dnetapi;
|
||||||
|
|
Loading…
Reference in New Issue