Clean up some code
This commit is contained in:
parent
88b7212465
commit
cc3b6bbf0d
|
|
@ -144,7 +144,6 @@ class User(AbstractUser):
|
||||||
return "/static/avatars/myvbv-default-avatar.png"
|
return "/static/avatars/myvbv-default-avatar.png"
|
||||||
|
|
||||||
def update_additional_json_data(self, data: Dict[str, Any]):
|
def update_additional_json_data(self, data: Dict[str, Any]):
|
||||||
# Set E-Mail notification settings for new users
|
|
||||||
self.additional_json_data = (
|
self.additional_json_data = (
|
||||||
self.additional_json_data
|
self.additional_json_data
|
||||||
| sanitize_json_data_input(
|
| sanitize_json_data_input(
|
||||||
|
|
|
||||||
|
|
@ -829,7 +829,7 @@ def create_or_update_trainer(course: Course, data: Dict[str, Any], language="de"
|
||||||
course_title = course.title if course else "None"
|
course_title = course.title if course else "None"
|
||||||
|
|
||||||
logger.debug(
|
logger.debug(
|
||||||
"create_or_update_trainer2",
|
"create_or_update_trainer",
|
||||||
course=course_title,
|
course=course_title,
|
||||||
data=data,
|
data=data,
|
||||||
label="import",
|
label="import",
|
||||||
|
|
|
||||||
|
|
@ -31,6 +31,7 @@ SSO_ROLES = {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# STAGE
|
||||||
# https://sso.test.b.lernetz.host/auth/admin/vbv/console/#/vbv/roles
|
# https://sso.test.b.lernetz.host/auth/admin/vbv/console/#/vbv/roles
|
||||||
ROLE_IDS = {
|
ROLE_IDS = {
|
||||||
"myvbv-uberbetriebliche-kurse-member": "0725f2d4-c3f3-48b7-83ec-06acfae630e6",
|
"myvbv-uberbetriebliche-kurse-member": "0725f2d4-c3f3-48b7-83ec-06acfae630e6",
|
||||||
|
|
@ -52,3 +53,5 @@ ROLE_IDS = {
|
||||||
"myvbv-intermediarioa-assicurativoa-member": "9fbaaa0f-cf8c-45f2-93f6-7174cb18a982",
|
"myvbv-intermediarioa-assicurativoa-member": "9fbaaa0f-cf8c-45f2-93f6-7174cb18a982",
|
||||||
"myvbv-intermediarioa-assicurativoa-mentor": "46b12e54-682e-44c0-b506-eab820138b66",
|
"myvbv-intermediarioa-assicurativoa-mentor": "46b12e54-682e-44c0-b506-eab820138b66",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# TODO: Add production roles IDs
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue