From 3a8bfb38638ea5114587d81905cbb86df8999d82 Mon Sep 17 00:00:00 2001 From: Auric Vente Date: Fri, 10 May 2024 20:59:42 -0600 Subject: [PATCH] Mods --- main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 58721c7..780fecf 100644 --- a/main.py +++ b/main.py @@ -11,7 +11,6 @@ import random from bs4 import BeautifulSoup from datetime import datetime, timedelta from pathlib import Path -import aiofiles import sys import tempfile @@ -76,8 +75,10 @@ def random_int(min_val, max_val): def random_date(): - start_date = datetime.now() - timedelta(years=2) - end_date = start_date + timedelta(years=12) + two_years = 730 + twelve_years = 4380 + start_date = datetime.now() - timedelta(days=two_years) + end_date = start_date + timedelta(days=(twelve_years)) 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")