Fixed exporting weights for users that left the server
and reduced debug output
This commit is contained in:
1 parent
ae77a1f860
commit
891b79d0df
2 files changed
+6
-2
No files matched your search
+1
-1
@@ -796,7 +796,7 @@ class Poll:
|
||||
if not name:
|
||||
name = member.name
|
||||
export += f'\n{name}'
|
||||
if self.votes[str(member.id)]['weight'] != 1:
|
||||
if self.votes[str(user_id)]['weight'] != 1:
|
||||
export += f' (weight: {self.votes[str(user_id)]["weight"]})'
|
||||
export += ': ' + ', '.join([self.options_reaction[c] for c in self.votes[str(user_id)]['choices']])
|
||||
export += '\n'
|
||||
|
||||
Reference in new issue
Block a user