pnxenopoulos / awpy

Python library to parse, analyze and visualize Counter-Strike 2 data
http://www.awpycs.com
MIT License
366 stars 56 forks source link

JSON pretty print after using clean_rounds method #69

Closed kenmareirl closed 2 years ago

kenmareirl commented 2 years ago

Is your feature request related to a problem? Please describe. Not at all. With the new method clean_rounds the json is not pretty print, there are no indentation anymore.

Describe the solution you'd like Fix json.dump(self.json, fp) in demoparser.py's write_json method to something like json.dumps(simplejson.loads(output), indent=4)

Describe alternatives you've considered Format with manual (and pretty easy) action

Additional context N/A

pnxenopoulos commented 2 years ago

Fixed in #77