Chiv2-Community / chivstats.xyz-web

chivstats.xyz Chivalry 2 Leaderboards Web Frontend
5 stars 2 forks source link

Jsonify the News #14

Closed humanshield314 closed 1 year ago

humanshield314 commented 1 year ago

My initial thought here is to ultimately serve news and notes saved in a human writable/readable format in a file. Yaml might be easy.

I would like to then read that file in and convert that to json output. Need to figure out how django can do that.

Eitherway we can use the django json output eventually for the endpoint.

We can also use the json object to write out in the template if need be for the time being.

humanshield314 commented 1 year ago

this article is literally everything i want

https://python.land/data-processing/python-yaml

humanshield314 commented 1 year ago

https://github.com/Chiv2-Community/chivstats.xyz-web/pull/16

gimmic commented 1 year ago

Resolved by #16