We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b57e9ea + 5cf3463 commit 896bce0Copy full SHA for 896bce0
1 file changed
library/omikuji.py
@@ -43,7 +43,8 @@ def draw(self) -> (Hashable, OmikujiResult):
43
"""
44
return choices(
45
population=list(self.entries.items()),
46
- weights=list(map(lambda entry: entry.appearance, self.entries.values())),
+ weights=list(
47
+ map(lambda entry: entry.appearance, self.entries.values())),
48
k=1
49
)[0]
50
@@ -73,7 +74,7 @@ def draw(self) -> (Hashable, OmikujiResult):
73
74
":dove_of_peace: 鳩吉 お前がになる番だ!!羽ばたけ!!!飛べ!!!!唐揚げになれ!!!!!"
75
),
76
- 'KYO': OmikujiResult(
77
+ 'KYO': OmikujiResult(
78
75,
79
":cry: 凶 ちょっと慎重にいったほうがいいかも……"
80
0 commit comments