Drarig29 / brackets-manager.js

A simple library to manage tournament brackets (round-robin, single elimination, double elimination).
https://drarig29.github.io/brackets-docs
MIT License
253 stars 40 forks source link

Feature Request - make export take an optional tournamentId #158

Closed GrimLothar closed 1 year ago

GrimLothar commented 1 year ago

So, i'm creating multiple tournaments with this library, and it looks like in order to use brackets-viewer I need to feed it the full DB. But it doesn't make sense to export the WHOLE db, when I just want to display the brackets of a single tournament.

So maybe we can have an optional tournamentId parameter on export and that way we can get all the data needed to display that specific tournament bracket only

GrimLothar commented 1 year ago

Nevermind, I noticed we already have get.tournamentData awesome!