From 1b3396baf42f6c9256999e6a76c60d48d516daf6 Mon Sep 17 00:00:00 2001 From: Daniel Date: Thu, 30 Nov 2023 11:49:31 +0100 Subject: [PATCH] add make_url util function --- src/utils.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/utils.py b/src/utils.py index 92f7b26..dcf66f5 100644 --- a/src/utils.py +++ b/src/utils.py @@ -18,3 +18,8 @@ def rmtree(root_dir: Path): child.unlink() root_dir.rmdir() + + +def make_url(domain: str) -> str: + """adds 'http://' at the beginning of a string""" + return "https://" + domain