Skip to content

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

@KShivendu

Description

@KShivendu

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions