|
@@ -39,6 +39,11 @@ def create_links(news_string):
|
|
|
return return_string
|
|
return return_string
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
+def escape_markdown(news_string):
|
|
|
|
|
+ news_string = news_string.translate(str.maketrans({'_': '\_', '*': '\*', '~': '\~'}))
|
|
|
|
|
+ return news_string
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
def is_broadcast(cur, this_id):
|
|
def is_broadcast(cur, this_id):
|
|
|
query = f"""SELECT COUNT(*) FROM human_resource WHERE event = {this_id};"""
|
|
query = f"""SELECT COUNT(*) FROM human_resource WHERE event = {this_id};"""
|
|
|
res = database_select(cur, query)
|
|
res = database_select(cur, query)
|