diff options
author | Parker <contact@pkrm.dev> | 2024-11-16 00:29:21 -0600 |
---|---|---|
committer | Parker <contact@pkrm.dev> | 2024-11-16 00:29:21 -0600 |
commit | 6e8f3ee321d703cf454f131c129a147c841467bc (patch) | |
tree | 8f4943effe2309b07de463f8ee9e5e9c37e9819a | |
parent | 76b9da8bd3d51300c00eed45aef43db1c595d71f (diff) |
Keep expire_date as a day
-rw-r--r-- | api/routes/links_routes.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/routes/links_routes.py b/api/routes/links_routes.py index 97b4599..c060f3f 100644 --- a/api/routes/links_routes.py +++ b/api/routes/links_routes.py @@ -57,7 +57,7 @@ async def create_link( link=link_path, owner=current_user.id, redirect_link=url.url, - expire_date=datetime.datetime.utcnow() + expire_date=datetime.datetime.today() + datetime.timedelta(days=30), ) db.add(new_link) |