Skip to content

Commit

Permalink
CST-10 znick#336 codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhailyumanov committed Mar 13, 2021
1 parent c3cd713 commit 9008996
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anytask/users/management/commands/create_test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from years.models import Year
from schools.models import School
from groups.models import Group
from course.models import Course


def parse_name(name):
Expand Down Expand Up @@ -75,7 +76,7 @@ def handle(self, **options):
save_all(courses)
print("Created courses {}".format(courses_raw))

schools = [School.objects.create(name=school["name"],
schools = [School.objects.create(name=school["name"],
link=school["link"])
for school in schools_raw]
save_all(schools)
Expand Down Expand Up @@ -126,4 +127,3 @@ def handle(self, **options):
course = courses[course_id]
course.teachers.add(user)
print("Set teachers")

0 comments on commit 9008996

Please sign in to comment.