Skip to content

Commit

Permalink
Dump directors on each run-all triggered
Browse files Browse the repository at this point in the history
  • Loading branch information
booxter committed Dec 6, 2024
1 parent 5b75e46 commit d38b5e9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,12 @@ test: lint
pdm run pytest

# One can use e.g. https://letterboxd.com/hershwin/list/all-the-movies/ as the base list
get-directors:
pdm run get-directors -i ./data/lists/everything.csv -o ${DIRECTORS_FILE} | $(RUN_LOG_CMD)
fetch-directors:
pdm run fetch-directors -i ./data/lists/everything.csv -o ${DIRECTORS_FILE} | $(RUN_LOG_CMD)

populate-directors:
pdm run populate-directors -d ${DIRECTORS_FILE}

# TODO: add dump-directors to run-all?
dump-directors:
pdm run dump-directors -o ${DIRECTORS_FILE}.new | $(RUN_LOG_CMD)
mv ${DIRECTORS_FILE}.new ${DIRECTORS_FILE}
Expand All @@ -42,7 +41,7 @@ run-update-services:
run-cleanup:
pdm run cleanup $(ARGS) | $(RUN_LOG_CMD)

run-all: populate-directors run-update-directors run-update-films run-update-offers run-update-services run-cleanup
run-all: populate-directors run-update-directors run-update-films run-update-offers run-update-services run-cleanup dump-directors

run-db-upgrade:
pdm run alembic upgrade head
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ build-backend = "pdm.backend"
distribution = true

[project.scripts]
get-directors = "letsrolld.cmd.get_directors:main"
fetch-directors = "letsrolld.cmd.fetch_directors:main"
populate-directors = "letsrolld.cmd.populate_directors:main"
update-directors = "letsrolld.cmd.update:directors_main"
dump-directors = "letsrolld.cmd.dump_directors:main"
Expand Down
File renamed without changes.

0 comments on commit d38b5e9

Please sign in to comment.