Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Download games from advanced search #12066

Open
jamesqo opened this issue Dec 19, 2022 · 1 comment
Open

Feature request: Download games from advanced search #12066

jamesqo opened this issue Dec 19, 2022 · 1 comment
Labels

Comments

@jamesqo
Copy link

jamesqo commented Dec 19, 2022

It would be very convenient if there was a way to download the output of Advanced Search queries into a PGN file. Seems like this would be a relatively easy and sensible feature to implement.

@ErdoganSeref
Copy link
Contributor

We can add an a tag beside the permalink.

frag(
div(cls := "search__status box__pad")(
strong(xGamesFound(pager.nbResults.localize, pager.nbResults)),
"",
permalink
),

We can use the API to provide the href.

lila/conf/routes

Lines 21 to 24 in 379e101

# Game export
POST /games/export/_ids controllers.Game.exportByIds
POST /api/games/export/_ids controllers.Game.exportByIds
GET /games/export/:username controllers.Game.exportByUser(username)

But how can you pass exportByIds a list of game IDs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants