aboutsummaryrefslogtreecommitdiff
path: root/app/func/newlink.py
diff options
context:
space:
mode:
authorParker <contact@pkrm.dev>2024-02-26 20:55:05 -0600
committerParker <contact@pkrm.dev>2024-02-26 20:55:05 -0600
commitbce756b9aa51dfdfa2c2e6cdef4f88f660b80148 (patch)
treed2e7a238b04d4339bedf05f626bff15d48a61945 /app/func/newlink.py
parenta0bfa5440603841c40e6a29495ca49c09a5d8c83 (diff)
Overhaul: Flask -> FastAPI
Diffstat (limited to 'app/func/newlink.py')
-rw-r--r--app/func/newlink.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/func/newlink.py b/app/func/newlink.py
index c726499..06776e6 100644
--- a/app/func/newlink.py
+++ b/app/func/newlink.py
@@ -13,7 +13,7 @@ Links are composed of 5 uppercase ASCII characters + numbers
"""
def generate_link(redirect_link, owner):
if not validators.url(redirect_link):
- return None
+ return 422
with engine.begin() as conn:
choices = string.ascii_uppercase + '1234567890'