diff options
author | Parker <contact@pkrm.dev> | 2024-02-26 20:55:05 -0600 |
---|---|---|
committer | Parker <contact@pkrm.dev> | 2024-02-26 20:55:05 -0600 |
commit | bce756b9aa51dfdfa2c2e6cdef4f88f660b80148 (patch) | |
tree | d2e7a238b04d4339bedf05f626bff15d48a61945 /app/func/newlink.py | |
parent | a0bfa5440603841c40e6a29495ca49c09a5d8c83 (diff) |
Overhaul: Flask -> FastAPI
Diffstat (limited to 'app/func/newlink.py')
-rw-r--r-- | app/func/newlink.py | 2 |
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' |