Pass arguments from url() to git_service_hook() via a dict.

https://github.com/nijel/weblate/pull/208#discussion-diff-3009481
parent ef4cc19a
......@@ -182,8 +182,8 @@ urlpatterns = patterns('',
url(r'^hooks/update/(?P<project>[^/]*)/(?P<subproject>[^/]*)/$', 'weblate.trans.api.update_subproject'),
url(r'^hooks/update/(?P<project>[^/]*)/$', 'weblate.trans.api.update_project'),
url(r'^hooks/github/$', 'weblate.trans.api.git_service_hook', service='github'),
url(r'^hooks/bitbucket/$', 'weblate.trans.api.git_service_hook', service='bitbucket'),
url(r'^hooks/github/$', 'weblate.trans.api.git_service_hook', {service: 'github'}),
url(r'^hooks/bitbucket/$', 'weblate.trans.api.git_service_hook', {service: 'bitbucket'}),
url(r'^exports/stats/(?P<project>[^/]*)/(?P<subproject>[^/]*)/$', 'weblate.trans.api.export_stats', name='export-stats'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment