Skip to content
Snippets Groups Projects

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

Merged Matthieu Schaller requested to merge fix_rand_date into master
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -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
]
Loading