PhlexPlexico / get5-web

[END OF LIFE] Webpanel for servers using the get5 CS:GO server plugin
GNU General Public License v3.0
21 stars 10 forks source link

[Feature Request] Stats Download #110

Closed xe1os closed 5 years ago

xe1os commented 5 years ago

Is your feature request related to a problem? Please describe. No.

Describe the solution you'd like

  1. Option of uploading teams with respective player id's in web panel using csv or xls. Example template - teamname,teamtag,logoname,country,player1,player2,player3,player4,player5,player6,publicteam(boolean)

  2. Option of downloading match stats into an .xls or csv file from Web Panel.

Describe alternatives you've considered N/A

Additional context

  1. It will be easier to upload a file from a template rather than manually updating for each team.
  2. Downloaded stats can be used in uploading to a different website or application for record/analysis.
TandelK commented 5 years ago

I think this will be a good idea for getting teams ready up from Excel Sheet for both Team Upload and Stats Download

PhlexPlexico commented 5 years ago

Provided testing can be done for the PR that's been up for some dependency updates, I'll look into this. Found another bug with file uploads, and would not like to go through that whole ordeal again. I think the download would be pretty simple because there is probably a library available, but would you prefer individual stats for a person across the entire platform as well? Or just matches? I'll look into it, but don't expect it to be done anytime soon.

xe1os commented 5 years ago

@PhlexPlexico thank you for considering this. Would be great if the stats of both individual and matches are allowed to download.

PhlexPlexico commented 5 years ago

I also forgot to mention, there are currently ways of retrieving stats and using some excel magic to convert them to an excel/CSV format, which we do in our small league for Vmix. If you take at /match/:matchid:/scoreboard it produces a JSON object of the entire series, but I'll see what I can do for a CSV export.

PhlexPlexico commented 5 years ago

Commit a741812 which is now on the development branch can export CSV from a match, given a map number. It can be accessed via /match/<int:matchid>/map/<int:mapid> where 0 is the first map. Please test and confirm if it works alright!