Skip to content

Commit

Permalink
Merge branch 'javascript_refactor' into james_baseline_custom_pages
Browse files Browse the repository at this point in the history
  • Loading branch information
timmahrt committed Jun 29, 2017
2 parents e13623d + 9860f81 commit a4c5f0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
6 changes: 0 additions & 6 deletions lmeds/code_generation/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,12 +126,6 @@ def keyboardletterToChar(letter):


def mapKeylist(keyIDList):
try:
if isinstance(keyIDList, basestring):
keyIDList = [keyIDList, ]
except NameError:
if isinstance(keyIDList, str):
keyIDList = [keyIDList, ]

tmpKeyIDList = []
for keyID in keyIDList:
Expand Down
8 changes: 4 additions & 4 deletions lmeds/pages/boundary_pages.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ def __init__(self, name, transcriptName, minPlays, maxPlays,

# Normalize variables
if bindPlayKeyID is not None:
bindPlayKeyID = html.mapKeylist(bindPlayKeyID)
bindPlayKeyID = html.keyboardletterToChar(bindPlayKeyID)
if bindSubmitID is not None:
bindSubmitID = html.mapKeylist(bindSubmitID)
bindSubmitID = html.keyboardletterToChar(bindSubmitID)
presentAudio = presentAudio.lower() == "true"

minNumSelected = int(minNumSelected)
Expand Down Expand Up @@ -370,9 +370,9 @@ def __init__(self, name, transcriptName, minPlays, maxPlays,

# Normalize variables
if bindPlayKeyID is not None:
bindPlayKeyID = html.mapKeylist(bindPlayKeyID)
bindPlayKeyID = html.keyboardletterToChar(bindPlayKeyID)
if bindSubmitID is not None:
bindSubmitID = html.mapKeylist(bindSubmitID)
bindSubmitID = html.keyboardletterToChar(bindSubmitID)
presentAudio = presentAudio.lower() == "true"

minNumSelected = int(minNumSelected)
Expand Down

0 comments on commit a4c5f0b

Please sign in to comment.