Skip to content
Snippets Groups Projects
Commit b0ddfda2 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Make the random difference between two equivalent dates to be of the order of seconds and not days.

parent 13a68da1
No related branches found
No related tags found
1 merge request!9Make the random difference between two equivalent dates to be of the order of seconds and not days.
......@@ -28,7 +28,7 @@ def sort_cards(cards):
# cards on the same date.
dates = [
dp.parse(card["date"]) + datetime.timedelta(rand(0, 10000))
dp.parse(card["date"]) + datetime.timedelta(seconds=rand(0, 10000))
for card in cards
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment