progress bar
This commit is contained in:
@@ -28,6 +28,10 @@ class Task(models.Model):
|
||||
def tests(self):
|
||||
return ExtraFile.objects.filter(task=self, is_test=True).order_by('filename')
|
||||
|
||||
@property
|
||||
def tests_count(self):
|
||||
return len(self.tests) // 2
|
||||
|
||||
@property
|
||||
def samples(self):
|
||||
data = []
|
||||
|
Reference in New Issue
Block a user