Skip to content

Commit

Permalink
cleanup some logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Die4Ever committed Oct 11, 2024
1 parent b299446 commit 8e019e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libStreamDetective/notifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ def handleSingleNotificationService(self, notifierData, entry, newStreams):

if notifierData and notifierData.get('chance', 100) < 100:
if notifierData['chance'] < random.randint(1, 100):
print(self.ProfileName, 'lost the lottery:', newStreams)
print(self.ProfileName, 'lost the lottery:', [stream['user_login'] for stream in newStreams])
return
winners = random.sample(newStreams, 1) # the chance property can be misleading, because even 99% means a maximum of 1 per group
print(self.ProfileName, winners, 'won out of', newStreams)
print(self.ProfileName, [stream['user_login'] for stream in winners], 'won out of', [stream['user_login'] for stream in newStreams])
newStreams = winners
else:
random.shuffle(newStreams)
Expand Down

0 comments on commit 8e019e8

Please sign in to comment.