Skip to content

Commit

Permalink
automatically create clubs from csv file (issue wlmac#247)
Browse files Browse the repository at this point in the history
  • Loading branch information
pinwheeeel committed Feb 5, 2024
1 parent d5b38a8 commit 3143b5e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/management/commands/add_clubs.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ class Command(BaseCommand):
help = "Adds organizations from CSV file. Does not modify existing organizations. See https://github.com/wlmac/metropolis/issues/247"

def add_arguments(self, parser):
parser.add_argument('csv_file', type=str, help='Path to CSV file')
parser.add_argument('csv_file_path', type=str, help='Path to CSV file')

def handle(self, *args, **options):
csv_file_path = options['csv_file']
csv_file = options['csv_file_path']

try:
with open(csv_file_path, 'r') as csv_file:
with open(csv_file, 'r') as csv_file:
csv_reader = csv.reader(csv_file)
header = [
"CLUB NAME",
Expand Down

0 comments on commit 3143b5e

Please sign in to comment.