mirror of
https://github.com/Findus23/shuffle.git
synced 2024-09-18 13:33:44 +02:00
14 lines
311 B
Python
14 lines
311 B
Python
from config import people, debug
|
|
from derangement import get_derangement
|
|
from mail import notify
|
|
|
|
names = list(people.keys())
|
|
|
|
shuffled = get_derangement(names)
|
|
if debug: print(shuffled)
|
|
|
|
i = 0
|
|
for name, email in people.items():
|
|
chosen_person = shuffled[i]
|
|
notify(name, email, chosen_person)
|
|
i += 1
|