mirror of https://git.sr.ht/~sircmpwn/hub.sr.ht
Fix git.ensure_user_webhooks
Typo had the unensure function overwrite the ensure function, the end result being that everyone's webhooks were removed -_-
This commit is contained in:
parent
c1044b390c
commit
b1ff1910a3
|
@ -164,9 +164,12 @@ class GitService(SrhtService):
|
|||
}
|
||||
ensure_webhooks(user, f"{_gitsrht}/api/user/webhooks", config)
|
||||
|
||||
def ensure_user_webhooks(self, user):
|
||||
def unensure_user_webhooks(self, user):
|
||||
config = { }
|
||||
ensure_webhooks(user, f"{_gitsrht}/api/user/webhooks", config)
|
||||
try:
|
||||
ensure_webhooks(user, f"{_gitsrht}/api/user/webhooks", config)
|
||||
except:
|
||||
pass # nbd, upstream was probably deleted
|
||||
|
||||
def ensure_repo_webhooks(self, repo):
|
||||
config = {
|
||||
|
|
Loading…
Reference in New Issue