kopia lustrzana https://github.com/rtts/django-simplecms
Reduce indentation
rodzic
43c4cd281c
commit
3c8d5f6afe
|
@ -32,8 +32,7 @@ class SassMiddleware:
|
||||||
css_file = request.path.rsplit('/',1)[1]
|
css_file = request.path.rsplit('/',1)[1]
|
||||||
sass_file = css_file[:-4]
|
sass_file = css_file[:-4]
|
||||||
sass_paths = locate(sass_file)
|
sass_paths = locate(sass_file)
|
||||||
if sass_paths:
|
for sass_path in list(sass_paths):
|
||||||
for sass_path in sass_paths:
|
|
||||||
if os.path.exists(sass_path):
|
if os.path.exists(sass_path):
|
||||||
css_path = sass_path + '.css'
|
css_path = sass_path + '.css'
|
||||||
map_path = css_path + '.map'
|
map_path = css_path + '.map'
|
||||||
|
|
Ładowanie…
Reference in New Issue