Skip to content
Snippets Groups Projects
Commit 9dd3d952 authored by Josh Borrow's avatar Josh Borrow
Browse files

Merge branch 'fix_rand_date' into 'master'

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

See merge request !9
parents 13a68da1 b0ddfda2
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