mirror of
https://github.com/lucaspalomodevelop/indico-plugins.git
synced 2026-03-13 15:34:37 +00:00
Convert settings to unicode just in case
This commit is contained in:
parent
34b415fd4b
commit
c32b0e8e4f
@ -46,5 +46,8 @@ class PiwikImporter(Importer):
|
||||
'jsHookEnabled': 'enabled_for_events',
|
||||
'downloadTrackingEnabled': 'enabled_for_downloads'}
|
||||
for old, new in settings_map.iteritems():
|
||||
PiwikPlugin.settings.set(new, opts[old].getValue())
|
||||
value = opts[old].getValue()
|
||||
if isinstance(value, basestring):
|
||||
value = convert_to_unicode(value).strip()
|
||||
PiwikPlugin.settings.set(new, value)
|
||||
db.session.commit()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user