Leaderboard-Pro icon indicating copy to clipboard operation
Leaderboard-Pro copied to clipboard

api/codeforces: Expose user submissions data (with DB persistence)

Open KShivendu opened this issue 4 years ago • 1 comments

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 CodeforcesUserSubmission which should be similar to CodeforcesUserRatingUpdate
  • serializers.py: Create a new serializer Cf_Submission_Serializer which should be similar to Cf_RatingUpdate_Serializer
  • serializer.py: add submissions variable in Cf_User_Serializer (similar to rating_updates)
  • views.py: Use code from self.submissions at line 162 and store the relevant data in CodeforcesUserSubmission model

You might have to modify the submissions() function to adjust for the new changes.

KShivendu avatar Jul 24 '21 14:07 KShivendu

yes i will look into it

akshaywairagade2 avatar Jul 24 '21 14:07 akshaywairagade2