Remove obsolete variable

main
Luca 2 years ago
parent 32ff248be0
commit 2a7c3f33a4

@ -32,7 +32,6 @@ def create_playlist(request):
data = get_sheet_data(spreadsheet_id) data = get_sheet_data(spreadsheet_id)
mapping = {} mapping = {}
max_index = -1
artist_names = set() artist_names = set()
artists = [] artists = []
for row in data: for row in data:
@ -44,7 +43,6 @@ def create_playlist(request):
for index, heading in enumerate(row): for index, heading in enumerate(row):
if heading in required_fields: if heading in required_fields:
mapping[heading] = index mapping[heading] = index
max_index = index
required_fields.remove(heading) required_fields.remove(heading)
if len(required_fields) == 0: if len(required_fields) == 0:
break break

Loading…
Cancel
Save