Revert "updatestyles: Fix a TypeError"

This reverts commit 53053f19e4.
This commit is contained in:
Raphael Michel
2019-05-06 11:43:40 +02:00
parent c23f71a19c
commit 79ae9b6501

View File

@@ -26,7 +26,7 @@ class Command(BaseCommand):
for lc, ll in settings.LANGUAGES:
data = generate_widget_js(lc).encode()
checksum = hashlib.sha1(data).hexdigest()
fname = gs.settings.get('widget_file_{}'.format(lc), as_type=str)
fname = gs.settings.get('widget_file_{}'.format(lc))
if not fname or gs.settings.get('widget_checksum_{}'.format(lc), '') != checksum:
newname = default_storage.save(
'pub/widget/widget.{}.{}.js'.format(lc, checksum),