Skip to content

Commit

Permalink
Added is_submission check in student circuit
Browse files Browse the repository at this point in the history
  • Loading branch information
akshat2602 committed Aug 25, 2021
1 parent a96fa66 commit bdf2d94
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions esim-cloud-backend/saveAPI/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class StateSave(models.Model):
esim_libraries = models.ManyToManyField(Library)
project = models.ForeignKey(to=Project, on_delete=models.SET_NULL,
null=True)
is_submission = models.BooleanField(null=True, blank=True)

def save(self, *args, **kwargs):
super(StateSave, self).save(*args, **kwargs)
Expand Down
5 changes: 3 additions & 2 deletions esim-cloud-backend/saveAPI/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ class Meta:
'owner', 'shared', 'base64_image', 'create_time', 'version',
'branch', 'is_arduino', 'esim_libraries', 'project_id',
'project_version', 'project_branch', 'is_reported',
'id', 'lti_id')
'id', 'lti_id', 'is_submission')

def get_lti_id(self, obj):
save_id = obj.save_id
Expand Down Expand Up @@ -81,7 +81,8 @@ class Meta:
fields = ('save_time', 'save_id', 'name', 'description',
'shared', 'base64_image', 'create_time', 'version',
'branch', 'esim_libraries', 'project_id', 'project_version',
'project_branch', 'is_reported', 'id', 'lti_id')
'project_branch', 'is_reported', 'id', 'lti_id',
'is_submission')

def get_lti_id(self, obj):
save_id = obj.save_id
Expand Down

0 comments on commit bdf2d94

Please sign in to comment.