More random

This commit is contained in:
CHIEFSOFT\ameye
2025-01-22 11:41:03 -05:00
parent 768b8cd281
commit 5b52813ce2
+2 -1
View File
@@ -671,7 +671,8 @@ def calendar_data(current_user):
dList = []
sample_range = random.randint(20, 60)
for x in range(sample_range):
calDate = datetime.datetime.utcnow() + datetime.timedelta(minutes=1440 * random.randint(0, 20))
timeMin = random.randint(1440, 2880)
calDate = datetime.datetime.utcnow() + datetime.timedelta(minutes=timeMin * random.randint(0, 20))
new_l = {"uid":"425611f2-c692-4404-b93d-76ca7a5ce7"+str(x), "title": "Calendar Random Item on " + str(x) , "start": calDate, "category":random.randint(1, 4) }
dList.append(new_l)