From c2216f8582cddce5073c85219bbcb25b54096bb0 Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Fri, 10 May 2024 20:54:09 -0600 Subject: [PATCH] Mods --- main.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/main.py b/main.py index c1bbc21..58721c7 100644 --- a/main.py +++ b/main.py @@ -76,11 +76,10 @@ def random_int(min_val, max_val): def random_date(): - one_hundred = 36525 - current_date = datetime.now() - end_date = current_date + timedelta(days=(one_hundred // 2)) - random_days = random.randint(0, (end_date - current_date).days) - random_date = current_date + timedelta(days=random_days) + start_date = datetime.now() - timedelta(years=2) + end_date = start_date + timedelta(years=12) + random_days = random.randint(0, (end_date - start_date).days) + random_date = start_date + timedelta(days=random_days) return random_date.strftime("%d %b %Y")