remove token

This commit is contained in:
Yax 2021-07-31 13:51:34 +02:00
parent ddcc45104d
commit 27ed99e06e

View file

@ -250,7 +250,7 @@ def make_posts(
if params["stacosys_url"] and is_page_comment_enabled: if params["stacosys_url"] and is_page_comment_enabled:
req_url = params["stacosys_url"] + "/comments" req_url = params["stacosys_url"] + "/comments"
query_params = dict( query_params = dict(
token=params["stacosys_token"], url="/" + page_params["post_url"] url="/" + page_params["post_url"]
) )
resp = requests.get(url=req_url, params=query_params) resp = requests.get(url=req_url, params=query_params)
comments = resp.json()["data"] comments = resp.json()["data"]
@ -350,7 +350,6 @@ def main():
"author": "Admin", "author": "Admin",
"site_url": "http://localhost:8000", "site_url": "http://localhost:8000",
"current_year": datetime.datetime.now().year, "current_year": datetime.datetime.now().year,
"stacosys_token": "",
"stacosys_url": "", "stacosys_url": "",
} }