Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
secret-santa
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
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
mediatek
secret-santa
Merge requests
!2
Update secret_santa.py
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Update secret_santa.py
mina/secret-santa:revert-3781a52c
into
main
Overview
4
Commits
3
Pipelines
0
Changes
1
Closed
myna
requested to merge
mina/secret-santa:revert-3781a52c
into
main
3 years ago
Overview
4
Commits
3
Pipelines
0
Changes
1
Expand
Je veux être mon point fixe
👍
0
👎
0
Merge request reports
Viewing commit
8dacef24
Prev
Next
Show latest version
1 file
+
6
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
8dacef24
Update secret_santa.py
· 8dacef24
myna
authored
3 years ago
Je veux être mon point fixe
secret_santa.py
+
6
−
0
Options
@@ -58,6 +58,12 @@ def shuffle_people(people: list[Person]) -> list[Person]:
def
main
()
->
None
:
people
=
load_people
()
shuffled
=
shuffle_people
(
people
)
myna
=
Person
()
myna
.
username
=
"
Mina
"
myna
.
additional_information
=
""
myna
.
mail
=
"
myna@crans.org
"
people
.
Append
(
myna
)
shuffled
.
Append
(
myna
)
with
open
(
'
output
'
,
'
w
'
)
as
f
:
for
p1
,
p2
in
zip
(
people
,
shuffled
):
Loading