commit
3387c99510
|
|
@ -874,7 +874,7 @@ def create_or_update_trainer(course: Course, data: Dict[str, Any], language="de"
|
||||||
# circle expert handling
|
# circle expert handling
|
||||||
circle_data = parse_circle_group_string(data["Circles"])
|
circle_data = parse_circle_group_string(data["Circles"])
|
||||||
for circle_key in circle_data:
|
for circle_key in circle_data:
|
||||||
circle_name = LP_DATA[circle_key][language]["title"]
|
circle_slug = LP_DATA[circle_key][language]["slug"]
|
||||||
|
|
||||||
# print(circle_name, groups)
|
# print(circle_name, groups)
|
||||||
import_id = f"{data['Generation'].strip()} {group}"
|
import_id = f"{data['Generation'].strip()} {group}"
|
||||||
|
|
@ -882,7 +882,7 @@ def create_or_update_trainer(course: Course, data: Dict[str, Any], language="de"
|
||||||
import_id=import_id, group=group
|
import_id=import_id, group=group
|
||||||
).first()
|
).first()
|
||||||
circle = Circle.objects.filter(
|
circle = Circle.objects.filter(
|
||||||
slug=f"{course.slug}-lp-circle-{circle_name.lower()}"
|
slug=f"{course.slug}-lp-circle-{circle_slug}"
|
||||||
).first()
|
).first()
|
||||||
|
|
||||||
if course_session and circle:
|
if course_session and circle:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue