Skip to content

Commit 700b72c

Browse files
dvbridgespeircej
authored andcommitted
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.
1 parent 2cd7289 commit 700b72c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

psychopy/experiment/components/settings/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def writeInitCodeJS(self, buff, version, localDateTime, modular=True):
499499

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

0 commit comments

Comments
 (0)