Skip to content
Permalink
Browse files

BF: Fixes version formatting by using string value of version Param

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 700b72cd69de213252d9038330e35b6868541816
Showing with 1 addition and 1 deletion.
  1. +1 −1 psychopy/experiment/components/settings/__init__.py
@@ -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 = ''

0 comments on commit 700b72c

Please sign in to comment.
You can’t perform that action at this time.