Changes for Episciences journal

This commit is contained in:
dimitrispie 2023-01-13 15:06:08 +02:00
parent 7a7eb30a3f
commit 733abdffe3
1 changed files with 2 additions and 2 deletions

View File

@ -499,7 +499,7 @@ public class PiwikStatsDB {
String returnEpisciencesJournals = "SELECT id, substring(regexp_extract(websiteurl,'^([^\\.]+)\\.?',1),9) FROM "
+ ConnectDB.getStatsDBSchema() +
".datasource where websiteurl like '%episciences%' and dateofvalidation is not null";
".datasource where websiteurl like '%episciences%' and (dateofvalidation is not null or harvested=true)";
PreparedStatement st = ConnectDB.DB_HIVE_CONNECTION
.prepareStatement(returnEpisciencesJournals);
@ -576,7 +576,7 @@ public class PiwikStatsDB {
String returnEpisciencesJournals = "SELECT id, substring(regexp_extract(websiteurl,'^([^\\.]+)\\.?',1),9) FROM "
+ ConnectDB.getStatsDBSchema() +
".datasource where websiteurl like '%episciences%' and dateofvalidation is not null";
".datasource where websiteurl like '%episciences%' and (dateofvalidation is not null or harvested=true)";
PreparedStatement st = ConnectDB.DB_HIVE_CONNECTION
.prepareStatement(returnEpisciencesJournals);