mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
python: Reformat with Black, except quotes.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
5028c081cb
commit
11741543da
@@ -15,6 +15,7 @@ MESSAGE_TEMPLATE = """
|
||||
* **Attachments**: {attachments}
|
||||
""".strip()
|
||||
|
||||
|
||||
def dict_list_to_string(some_list: List[Any]) -> str:
|
||||
internal_template = ''
|
||||
for item in some_list:
|
||||
@@ -29,10 +30,14 @@ def dict_list_to_string(some_list: List[Any]) -> str:
|
||||
internal_template = internal_template[:-2]
|
||||
return internal_template
|
||||
|
||||
|
||||
@webhook_view('Greenhouse')
|
||||
@has_request_variables
|
||||
def api_greenhouse_webhook(request: HttpRequest, user_profile: UserProfile,
|
||||
payload: Dict[str, Any]=REQ(argument_type='body')) -> HttpResponse:
|
||||
def api_greenhouse_webhook(
|
||||
request: HttpRequest,
|
||||
user_profile: UserProfile,
|
||||
payload: Dict[str, Any] = REQ(argument_type='body'),
|
||||
) -> HttpResponse:
|
||||
if payload['action'] == 'ping':
|
||||
return json_success()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user