Skip to content

Commit

Permalink
decode binary theme data
Browse files Browse the repository at this point in the history
  • Loading branch information
milescalabresi committed May 15, 2024
1 parent 25e05b6 commit 7c56b64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp/esp/themes/controllers.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ def compile_css(self, theme_name, variable_data, output_filename):
css_data = self.compile_less(less_data)

with open(output_filename, 'w') as output_file:
output_file.write(six.text_type(THEME_COMPILED_WARNING) + six.text_type(css_data))
output_file.write(six.text_type(THEME_COMPILED_WARNING) + css_data.decode('UTF-8'))
logger.debug('Wrote %.1f KB CSS output to %s', len(css_data) / 1000., output_filename)
Tag.setTag("current_theme_version", value = hex(random.getrandbits(16)))

Expand Down

0 comments on commit 7c56b64

Please sign in to comment.