From 1620685cced1249f64e73f98419ce550d6c7d895 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Mon, 22 Jul 2019 22:00:56 +0200 Subject: [PATCH] Tweak user agent --- config.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/config.py b/config.py index c5903f5..e0f278d 100644 --- a/config.py +++ b/config.py @@ -95,9 +95,7 @@ with open(os.path.join(SASS_DIR, "base_theme.scss")) as f: CSS = sass.compile(string=raw_css, output_style="compressed") -USER_AGENT = ( - f"{requests.utils.default_user_agent()} (microblog.pub/{VERSION}; +{BASE_URL})" -) +USER_AGENT = f"microblog.pub/{VERSION}; +{BASE_URL}" mongo_client = MongoClient( host=[os.getenv("MICROBLOGPUB_MONGODB_HOST", "localhost:27017")]