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

Modify JS file to comply with the new data structure #24

Merged
merged 4 commits into from
Aug 20, 2024
Merged

Conversation

godarkrai
Copy link
Member

Modifies the JS used in the editor toolbar that inputs bracket data into the editor to comply with the new SAP API's data structure.

@godarkrai godarkrai self-assigned this Aug 14, 2024
Copy link

@KilMer56 KilMer56 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a page I can verify the behavior of it?

Comment on lines 497 to 499
// radiantPicks = "{{MatchSeries/Picks";
radiantPicks = result.heroVeto.radiant.picks;
// radiantPicks += "}}\n";

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are the comments still needed?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are comments, probably not...

@FO-nTTaX
Copy link
Member

FO-nTTaX commented Aug 19, 2024

image

We don't have team names, we might want to fix that or it's hard to use in the popup.

We can get that from the Valve API like https://api.steampowered.com/IDOTA2Match_570/GetTeamInfoByTeamID/v1/?&key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX&start_at_team_id=9247798&teams_requested=1

Adding this should be worthwhile.

@godarkrai
Copy link
Member Author

I've removed the comments, added team names instead of ids and changed a bit of the api parsing style due to change in the structure of data

@FO-nTTaX FO-nTTaX merged commit f0b396d into master Aug 20, 2024
8 checks passed
@FO-nTTaX FO-nTTaX deleted the dota2-sap branch August 20, 2024 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants