1
0
Fork 0
mirror of https://github.com/Findus23/shuffle.git synced 2024-09-18 13:33:44 +02:00
shuffle/main.py

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