Skip to content

Conversation

@dzhuang
Copy link
Contributor

@dzhuang dzhuang commented Jul 26, 2020

Fix #719 .

@dzhuang dzhuang force-pushed the rest_serializer branch 3 times, most recently from fdae2ef to f12972e Compare July 26, 2020 10:15
@dzhuang dzhuang requested a review from joshuata July 26, 2020 10:18
@dzhuang dzhuang requested a review from inducer July 26, 2020 17:25
Comment on lines +131 to +135
def get_percentage(self, obj):
if obj.correctness is not None:
return 100 * obj.correctness
else:
return None
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to make this a read-only property on the FlowPageVisitGrade class instead of the serializer?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your review. What's your opinion? @inducer

Copy link
Collaborator

@joshuata joshuata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me. I only had the one piece of feedback, and it's not blocking

Base automatically changed from master to main March 8, 2021 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate API to django REST

2 participants