Put "Download CSV" Button in AO3 Prompt Memes

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

Автор
JaneBuzJane
Инсталации дневно
0
Инсталации общо
18
Рейтинг
0 0 0
Версия
0.1
Създаден
03.01.2022
Обновен
03.01.2022
Лиценз
MIT
Работи на

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).