From 690abd9833916b8b23dcf17f28f624b9424b5893 Mon Sep 17 00:00:00 2001 From: Janaka Abeywardhana Date: Sun, 8 Sep 2024 14:26:33 +0100 Subject: [PATCH] chore: fix UTM source on home page --- web/page_handlers/home.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/page_handlers/home.py b/web/page_handlers/home.py index 12948676..941efbb5 100644 --- a/web/page_handlers/home.py +++ b/web/page_handlers/home.py @@ -1,6 +1,6 @@ """Page: Home (no auth required).""" -import socket +import os import streamlit as st from utils.handlers import ( @@ -43,7 +43,7 @@ """ ) - hostname = socket.gethostname() + hostname = os.environ.get("DOCQ_SERVER_ADDRESS", "http://localhost") st.subheader("Use Cases") st.markdown( f"""