Leaderboard-Pro
Leaderboard-Pro copied to clipboard
api/codeforces: Expose user submissions data (with DB persistence)
You may refer to what I've done for displaying rating_update data.
The steps that you need to take are :
- models.py create new model
CodeforcesUserSubmissionwhich should be similar toCodeforcesUserRatingUpdate - serializers.py: Create a new serializer
Cf_Submission_Serializerwhich should be similar toCf_RatingUpdate_Serializer - serializer.py: add
submissionsvariable inCf_User_Serializer(similar torating_updates) - views.py: Use code from
self.submissionsat line 162 and store the relevant data inCodeforcesUserSubmissionmodel
You might have to modify the submissions() function to adjust for the new changes.
yes i will look into it