From c72bc7a2f05ec9e0d09824c9d6cb658ade6dd674 Mon Sep 17 00:00:00 2001 From: Petitminion Date: Sun, 9 Feb 2025 21:26:26 +0100 Subject: [PATCH] far_right cli command --- api/funkwhale_api/music/wikidata.py | 1 + docs/specs/far-right-filter/index.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/api/funkwhale_api/music/wikidata.py b/api/funkwhale_api/music/wikidata.py index 6bc262829..0f2f480e9 100644 --- a/api/funkwhale_api/music/wikidata.py +++ b/api/funkwhale_api/music/wikidata.py @@ -87,4 +87,5 @@ def get_far_right_artists(): artists.append(artist) + logger.info(f"Found {len(artists)} far right artists : {[a.name for a in artists]}") return artists diff --git a/docs/specs/far-right-filter/index.md b/docs/specs/far-right-filter/index.md index 44ab1ad7e..5f205ac32 100644 --- a/docs/specs/far-right-filter/index.md +++ b/docs/specs/far-right-filter/index.md @@ -19,7 +19,7 @@ To find a common consensus/definition of far right ideology we will use wikidata ### Backend - [x] a celery tasks that add far_right artists to the db, or update existing artist with the far_right attribute if the name matches. Launched every month. -- [ ] a cli tool to display the list of right wing artists that display the name, the mbid and the wikidata ref. Prompt a warning if mbid is missing so admins can add a mbid +- [x] a cli tool to display the list of right wing artists that display the name, the mbid and the wikidata ref. Prompt a warning if mbid is missing so admins can add a mbid `docker compose run --rm api funkwhale-manage wikidata_far_right` - [x] A new artist attribute `far_right` displaying the wikidata id - [ ] Display an explicit api error response that explain why the artist in banned (link the funkwhale code of conduct and the artist wikidata id): - [x] on the import process : display an explicit error during import