Skip to content

Commit

Permalink
Test action
Browse files Browse the repository at this point in the history
  • Loading branch information
msj committed Dec 18, 2023
1 parent 9a20f44 commit 37c3647
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
DB=cases.db

.INTERMEDIATE: *.csv *.jl *.json

.PHONY: all
all: upload

.PHONY: clean
clean:
rm $(DB) *.csv *.jl *.json
rm *.csv *.jl *.json

cases.zip : $(DB)
- rm -rf cases_csv
Expand Down Expand Up @@ -56,10 +54,12 @@ CIVIL_SCRAPE_START_QUERY=$(shell tail -n +2 scripts/nightly_civil_start.sql)
civil-%.jl: $(DB)
START=$$(sqlite-utils query --csv --no-headers $(DB) \
"$(CIVIL_SCRAPE_START_QUERY)" -p subdivision $*); \
echo $$START; \
scrapy crawl civil -a division=$* -a start=$$START -O $@;

chancery.jl: $(DB)
START=$$(sqlite3 $(DB) < scripts/nightly_chancery_start.sql); \
echo $$START; \
scrapy crawl chancery -a start=$$START -O $@;

cases.db :
Expand Down

0 comments on commit 37c3647

Please sign in to comment.