Litestar rocks because previously these would give a nasty error on both server and client with keyerrors/bad request but with the pydantic models I get a beautiful
{'status_code': 400, 'detail': 'Validation failed for POST /report?api_key=some_key', 'extra': [{'message': 'Field required', 'key': 'target_steam_id'}]}
Also slightly rework the list_demos endpoint to allow one for analysts and for anyone who isn't an analyst to retrieve their own demo sessions.
Also fixes valid_session_guard to work for non-SDR servers
Also adds primary key to reports table to prevent duplicate reports on the same session
Litestar rocks because previously these would give a nasty error on both server and client with keyerrors/bad request but with the pydantic models I get a beautiful
Also slightly rework the list_demos endpoint to allow one for analysts and for anyone who isn't an analyst to retrieve their own demo sessions.
Also fixes valid_session_guard to work for non-SDR servers
Also adds primary key to reports table to prevent duplicate reports on the same session