github-hook
is an array
This commit is contained in:
parent
65b182c9a9
commit
b6ad57f965
1 changed files with 3 additions and 2 deletions
|
@ -18,8 +18,9 @@ class Module(ModuleManager.BaseModule):
|
||||||
full_name = data["repository"]["full_name"]
|
full_name = data["repository"]["full_name"]
|
||||||
hooks = self.bot.database.channel_settings.find_by_setting(
|
hooks = self.bot.database.channel_settings.find_by_setting(
|
||||||
"github-hook")
|
"github-hook")
|
||||||
for i, (server_id, channel_name, value) in list(enumerate(hooks))[::-1]:
|
for i, (server_id, channel_name, values) in list(
|
||||||
if not value == full_name:
|
enumerate(hooks))[::-1]:
|
||||||
|
if not full_name in values:
|
||||||
hooks.pop(i)
|
hooks.pop(i)
|
||||||
|
|
||||||
github_event = event["headers"]["X-GitHub-Event"]
|
github_event = event["headers"]["X-GitHub-Event"]
|
||||||
|
|
Loading…
Reference in a new issue