Put "Download CSV" Button in AO3 Prompt Memes

Puts a "Download as CSV" button on the Prompts page of AO3 Prompt Memes.

Autor
JaneBuzJane
Denne inštalácií
0
Celkový počet inštalácií
18
Hodnotenie
0 0 0
Verzia
0.1
Vytvorené
03.01.2022
Aktualizované
03.01.2022
Licencia
MIT
Spustiť na

Description

I was browsing AO3's Jira for fixes/enhancements for prompt memes and found this funky little tidbit:

Screenshot of a conversation. Person A requests an Export CSV button for Prompt Memes on Archive of Our Own dot org. Person B indicates that the code already exists, but there is no button.

So I added a button for Prompt Meme administrators to download a CSV of the requests.

Caveats

  1. The CSV is really terrible. It uses AO3's existing framework, which for some reason lumps the ship tags into the "Additional Tags" column, and has unescaped HTML everywhere. I can't change this without making a pull request on Git and editing the code myself, which I am not qualified for lol. If you would like to do that, there are a ton of collection maintainers everywhere who'll be in your debt!

  2. If you aren't an administrator of the collection, you won't be allowed to download the CSV, though the button will appear. You'll get an error message (see photo 2).