Skip to content

Commit

Permalink
qol changes to add_clubs
Browse files Browse the repository at this point in the history
  • Loading branch information
pinwheeeel committed Sep 28, 2024
1 parent 697b523 commit 76fdf07
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/management/commands/add_clubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def handle(self, *args, **options):
continue

self.success(f"New organization: {row[0]}")
row = [token.strip() for token in row]
(
organization_name,
_,
Expand Down Expand Up @@ -166,7 +167,7 @@ def handle(self, *args, **options):

def get_user_by_email(self, name: str, email: str) -> User | Status:
try:
return User.objects.get(email=email)
return User.objects.get(email__iexact=email)
except User.DoesNotExist:
self.error(
f"\t{name}'s email ({email}) not found! Are you sure they registered a metro account with this email?"
Expand Down

0 comments on commit 76fdf07

Please sign in to comment.