Skip to content

Commit

Permalink
update wizard_read_csv
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedaminehamrouni committed Jun 6, 2017
1 parent 5e6637d commit 4322d2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions abilian/sbe/apps/communities/views/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ def wizard_extract_data(emails, is_csv=False):
return existing_accounts_objects, existing_members_objects, accounts_list


def wizard_read_csv(csv=None):
def wizard_read_csv(csv):
"""read new members data from csv file"""
file_extension = secure_filename(csv.filename).split(".")[-1]

if file_extension != "csv":
return False
return []

contents = csv.readlines()
new_accounts = []
Expand Down

0 comments on commit 4322d2b

Please sign in to comment.