mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-23 02:47:10 +00:00
fix: fixed data generation (generatuion sumbissions for all types of task)
This commit is contained in:
@@ -132,6 +132,7 @@ class Command(BaseCommand):
|
||||
|
||||
def create_submissions(self, tasks, users):
|
||||
for task in tasks:
|
||||
if task.type == CompetitionTask.CompetitionTaskType.REVIEW.value:
|
||||
# Each task will get between 1 and 3 submissions
|
||||
num_submissions = random.randint(1, 3)
|
||||
for _ in range(num_submissions):
|
||||
|
||||
Reference in New Issue
Block a user