Skip to content

Commit

Permalink
BF: Fixes version formatting by using string value of version Param
Browse files Browse the repository at this point in the history
The version Param was not formatting correctly in the JS and HTML
because the string representation of the value was not being used. This fix
uses the val attribute of version Param to format JS and html.
  • Loading branch information
dvbridges authored and peircej committed May 9, 2019
1 parent 2cd7289 commit 700b72c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psychopy/experiment/components/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def writeInitCodeJS(self, buff, version, localDateTime, modular=True):

# decide if we need anchored useVersion or leave plain
if self.params['Use version'].val not in ['', 'latest']:
versionStr = "-{}".format(self.params['Use version'])
versionStr = '-{}'.format(self.params['Use version'].val)
else:
versionStr = ''

Expand Down

0 comments on commit 700b72c

Please sign in to comment.