mirror of https://gitlab.com/bashrc2/epicyon
Remove default arguments
parent
66b3cdde74
commit
ca526fa0d3
2
utils.py
2
utils.py
|
@ -488,7 +488,7 @@ def get_content_from_post(post_json_object: {}, system_language: str,
|
||||||
|
|
||||||
def get_language_from_post(post_json_object: {}, system_language: str,
|
def get_language_from_post(post_json_object: {}, system_language: str,
|
||||||
languages_understood: [],
|
languages_understood: [],
|
||||||
content_type: str = "content") -> str:
|
content_type: str) -> str:
|
||||||
"""Returns the content language from the post
|
"""Returns the content language from the post
|
||||||
including searching for a matching entry within contentMap
|
including searching for a matching entry within contentMap
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -2661,7 +2661,7 @@ def individual_post_as_html(signing_priv_key_pem: str,
|
||||||
|
|
||||||
content_language = \
|
content_language = \
|
||||||
get_language_from_post(post_json_object, system_language,
|
get_language_from_post(post_json_object, system_language,
|
||||||
languages_understood)
|
languages_understood, "content")
|
||||||
content_str = dont_speak_hashtags(content_str)
|
content_str = dont_speak_hashtags(content_str)
|
||||||
|
|
||||||
attachment_str, gallery_str = \
|
attachment_str, gallery_str = \
|
||||||
|
@ -2756,7 +2756,7 @@ def individual_post_as_html(signing_priv_key_pem: str,
|
||||||
content_str = remove_style_within_html(content_str)
|
content_str = remove_style_within_html(content_str)
|
||||||
content_language = \
|
content_language = \
|
||||||
get_language_from_post(post_json_object, system_language,
|
get_language_from_post(post_json_object, system_language,
|
||||||
languages_understood)
|
languages_understood, "content")
|
||||||
content_str = dont_speak_hashtags(content_str)
|
content_str = dont_speak_hashtags(content_str)
|
||||||
if not content_str:
|
if not content_str:
|
||||||
content_str = \
|
content_str = \
|
||||||
|
|
Loading…
Reference in New Issue