Skip to content

Commit

Permalink
chore: update sep for teacher photos
Browse files Browse the repository at this point in the history
  • Loading branch information
NotFish232 committed Oct 15, 2024
1 parent ea1ecbc commit cc9190f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions intranet/apps/dataimport/management/commands/import_photos.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def handle(self, *args, **options):
for path in all_photos:
user = None
if IS_STAFF:
if "-" in path.stem:
last_name, first_name = path.stem.rsplit("-", 1)
if "_" in path.stem:
last_name, first_name = path.stem.rsplit("_", 1)
user = get_user_model().objects.filter(first_name=first_name, last_name=last_name).first()
else:
try:
Expand Down

0 comments on commit cc9190f

Please sign in to comment.