Skip to content

Commit 6e8dd76

Browse files
committed
Move to the created date for export constraint
1 parent 4d1191a commit 6e8dd76

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/libraetd/tasks/extract.rake

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ namespace :export do
4444
errors = 0
4545

4646
# our query constraint
47-
constraints = "(date_published_ssim:[#{export_date} TO *])"
47+
constraints = "has_model_ssim:GenericWork AND (system_create_dtsi:[#{export_date}T00:00:00Z TO *])"
4848

4949
# batched processing of generic works
5050
GenericWork.search_in_batches( constraints ) do |group|
@@ -85,7 +85,7 @@ namespace :export do
8585
count = 0
8686

8787
# our query constraint
88-
constraints = "(date_published_ssim:[#{export_date} TO *])"
88+
constraints = "has_model_ssim:GenericWork AND (system_create_dtsi:[#{export_date}T00:00:00Z TO *])"
8989

9090
# batched processing of generic works
9191
GenericWork.search_in_batches( constraints ) do |group|

0 commit comments

Comments
 (0)