style: format code with black
diff --git a/erpnext/templates/pages/help.py b/erpnext/templates/pages/help.py
index 6a83fc8..19993ee 100644
--- a/erpnext/templates/pages/help.py
+++ b/erpnext/templates/pages/help.py
@@ -25,21 +25,19 @@
else:
context.issues = []
+
def get_forum_posts(s):
- response = requests.get(s.forum_url + '/' + s.get_latest_query)
+ response = requests.get(s.forum_url + "/" + s.get_latest_query)
response.raise_for_status()
response_json = response.json()
- topics_data = {} # it will actually be an array
- key_list = s.response_key_list.split(',')
+ topics_data = {} # it will actually be an array
+ key_list = s.response_key_list.split(",")
for key in key_list:
topics_data = response_json.get(key) if not topics_data else topics_data.get(key)
for topic in topics_data:
- topic["link"] = s.forum_url + '/' + s.post_route_string + '/' + str(topic.get(s.post_route_key))
+ topic["link"] = s.forum_url + "/" + s.post_route_string + "/" + str(topic.get(s.post_route_key))
- post_params = {
- "title": s.post_title_key,
- "description": s.post_description_key
- }
+ post_params = {"title": s.post_title_key, "description": s.post_description_key}
return topics_data, post_params