Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SWIFTweb
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SWIFT
SWIFTweb
Merge requests
!9
Make the random difference between two equivalent dates to be of the order of seconds and not days.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Make the random difference between two equivalent dates to be of the order of seconds and not days.
fix_rand_date
into
master
Overview
1
Commits
1
Pipelines
0
Changes
1
Merged
Matthieu Schaller
requested to merge
fix_rand_date
into
master
7 years ago
Overview
1
Commits
1
Pipelines
0
Changes
1
Expand
The current version randomizes too much and the talks are all over the place.
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
b0ddfda2
1 commit,
7 years ago
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
filters.py
+
1
−
1
Options
@@ -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