From cd6f8727c043b721047e3c6b56689ed6f374780e Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 1 Jul 2018 12:49:40 +0200 Subject: [PATCH] fix formatting --- app.py | 4 +++- config.py | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index 750b66a..63ca676 100644 --- a/app.py +++ b/app.py @@ -465,7 +465,9 @@ def tmp_migrate(): @login_required def tmp_migrate2(): # Remove buggy OStatus announce - DB.activities.remove({"activity.object": {"$regex": f"^tag:"}, "type": ActivityType.ANNOUNCE.value}) + DB.activities.remove( + {"activity.object": {"$regex": f"^tag:"}, "type": ActivityType.ANNOUNCE.value} + ) # Cache the object for activity in DB.activities.find(): if ( diff --git a/config.py b/config.py index a5a6bb7..ec73d0c 100644 --- a/config.py +++ b/config.py @@ -4,8 +4,8 @@ from datetime import datetime from enum import Enum import requests -import yaml import sass +import yaml from itsdangerous import JSONWebSignatureSerializer from pymongo import MongoClient @@ -80,7 +80,7 @@ SASS_DIR = os.path.join(os.path.dirname(os.path.abspath(__file__)), "sass") theme_css = f"$primary-color: {THEME_COLOR};\n" with open(os.path.join(SASS_DIR, f"{THEME_STYLE.value}.scss")) as f: theme_css += f.read() - theme_css += '\n' + theme_css += "\n" with open(os.path.join(SASS_DIR, "base_theme.scss")) as f: raw_css = theme_css + f.read() CSS = sass.compile(string=raw_css)