Skip to content

Commit

Permalink
znick#336 linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailyumanov committed Mar 28, 2021
1 parent 2352c7c commit ef03ca3
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions anytask/users/management/commands/create_test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from groups.models import Group
from courses.models import Course
from tasks.models import Task, TaskGroupRelations
from issues.models import Issue, Event, IssueField
from issues.models import Issue


def parse_name(name):
Expand Down Expand Up @@ -66,7 +66,7 @@ def handle(self, **options):
teachers_raw = [{"name": "Eira Buckner", "courses": (0,)},
{"name": "Paul Akhtar", "courses": (1,)},
{"name": "Kristi Todd", "courses": (2,)}]
tasks_raw = [{"title": "Charms | Task 1", "course": 0,
tasks_raw = [{"title": "Charms | Task 1", "course": 0,
"groups": (0,), "updated_by": 0}]
issues_raw = [{"student": 0, "task": 0}]

Expand Down Expand Up @@ -122,7 +122,7 @@ def handle(self, **options):
print("Create issues {}".format(issues_raw))
issues = [Issue.objects.create(student=students[issue["student"]],
task=tasks[issue["task"]])
for issue in issues_raw]
for issue in issues_raw]
save_all(issues)

# Bind objects
Expand Down Expand Up @@ -164,6 +164,5 @@ def handle(self, **options):
relation = TaskGroupRelations.objects.create(
task=task, group=group)
relation.save()


print("Completed creating test data.")

0 comments on commit ef03ca3

Please sign in to comment.