Skip to content

Commit

Permalink
Merge branch 'main' of github.com:joaorb64/TournamentStreamHelper int…
Browse files Browse the repository at this point in the history
…o feature/track-station
  • Loading branch information
joaorb64 committed Nov 26, 2023
2 parents 767cc19 + 0f4c7ab commit 5eaf351
Show file tree
Hide file tree
Showing 4 changed files with 110,524 additions and 4 deletions.
105,486 changes: 105,485 additions & 1 deletion assets/characters.json

Large diffs are not rendered by default.

5,038 changes: 5,037 additions & 1 deletion assets/rulesets.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/TSHGameAssetManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def run(self):
try:
url = 'https://api.start.gg/characters'
r = requests.get(url, allow_redirects=True)
r_json = orjson.dumps(orjson.loads(r.text))
r_json = orjson.dumps(orjson.loads(r.text), option=orjson.OPT_INDENT_2)

open('./assets/characters.json.tmp', 'wb').write(r_json)

Expand Down
2 changes: 1 addition & 1 deletion src/TSHScoreboardStageWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ def run(self):
)
rulesets = deep_get(data, "entities.ruleset")
open('./assets/rulesets.json',
'wb').write(orjson.dumps(rulesets))
'wb').write(orjson.dumps(rulesets, option=orjson.OPT_INDENT_2))
self.parent().startggRulesets = rulesets
logger.info("startgg Rulesets downloaded from startgg")
self.parent().signals.rulesets_changed.emit()
Expand Down

0 comments on commit 5eaf351

Please sign in to comment.