Skip to content
Snippets Groups Projects
Commit 28147c7b authored by Sivert Kronen Hatteberg's avatar Sivert Kronen Hatteberg
Browse files

Remove unused code

parent 8dd08ca2
No related branches found
No related tags found
1 merge request!149Greg 95 cerebrum sponsor import
This commit is part of merge request !149. Comments created here will be created in the context of that merge request.
......@@ -94,8 +94,6 @@ class Command(BaseCommand):
self, person_id: str, unit: OrganizationalUnit
) -> Optional[Sponsor]:
"""Insert or update a sponsor from Cerebum data."""
# logger.bind(cerebrum_person_id=person_id)
person = self.client.get_person(person_id)
if not person:
logger.warning("cerebrum_person_missing", cerebrum_person_id=person_id)
......@@ -110,8 +108,6 @@ class Command(BaseCommand):
logger.warning("cerebrum_no_primary_account", cerebrum_person_id=person_id)
return None
# log = log.bind(feide_id=feide_id)
first_name, last_name = self._get_person_name(person)
if not first_name or not last_name:
logger.warning("cerebrum_no_valid_name", cerebrum_person_id=person_id)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment