kopia lustrzana https://github.com/simonw/datasette
Fix Python 3.5 test failure
rodzic
b01304d707
commit
1c0d93c39b
|
@ -843,7 +843,7 @@ class Datasette:
|
|||
def app_css_hash(self):
|
||||
if not hasattr(self, '_app_css_hash'):
|
||||
self._app_css_hash = hashlib.sha1(
|
||||
open(os.path.join(app_root, 'datasette/static/app.css')).read().encode('utf8')
|
||||
open(os.path.join(str(app_root), 'datasette/static/app.css')).read().encode('utf8')
|
||||
).hexdigest()[:6]
|
||||
return self._app_css_hash
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue