diff options
| author | jason | 2016-09-08 15:39:51 -0600 |
|---|---|---|
| committer | jason | 2016-09-08 15:39:51 -0600 |
| commit | 941adf6a0efd6965a07a8bf094a97f2b6d50e80b (patch) | |
| tree | e6dd6247cad071cd7bf6a7deb722f99266e84fea | |
| parent | f2463f882a9d7ea8b0a35dd4aef47cd354ceff90 (diff) | |
| download | warmachine-ng-941adf6a0efd6965a07a8bf094a97f2b6d50e80b.tar.gz warmachine-ng-941adf6a0efd6965a07a8bf094a97f2b6d50e80b.zip | |
Researching a bug where not all users are messaged for stnadup
| -rw-r--r-- | warmachine/addons/standup.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/warmachine/addons/standup.py b/warmachine/addons/standup.py index 71b57df..adb7694 100644 --- a/warmachine/addons/standup.py +++ b/warmachine/addons/standup.py | |||
| @@ -307,6 +307,7 @@ class StandUpPlugin(WarMachinePlugin): | |||
| 307 | through all the users in the channel asking them report their standup. | 307 | through all the users in the channel asking them report their standup. |
| 308 | """ | 308 | """ |
| 309 | users = connection.get_users_by_channel(channel) | 309 | users = connection.get_users_by_channel(channel) |
| 310 | self.log.debug('Users found in {}: {}'.format(channel, users)) | ||
| 310 | if not users: | 311 | if not users: |
| 311 | self.log.error('Unable to get_users_by_channel for channel ' | 312 | self.log.error('Unable to get_users_by_channel for channel ' |
| 312 | '{}. Skipping standup.'.format(channel)) | 313 | '{}. Skipping standup.'.format(channel)) |
| @@ -316,10 +317,10 @@ class StandUpPlugin(WarMachinePlugin): | |||
| 316 | for u in users: | 317 | for u in users: |
| 317 | if u == connection.nick or \ | 318 | if u == connection.nick or \ |
| 318 | u in self.standup_schedules[channel]['ignoring']: | 319 | u in self.standup_schedules[channel]['ignoring']: |
| 319 | try: | 320 | # try: |
| 320 | users.remove(u) | 321 | # users.remove(u) |
| 321 | except ValueError: | 322 | # except ValueError: |
| 322 | pass | 323 | # pass |
| 323 | continue | 324 | continue |
| 324 | 325 | ||
| 325 | if u in self.users_awaiting_reply and \ | 326 | if u in self.users_awaiting_reply and \ |