This commit is contained in:
2024-05-29 20:23:52 +03:00
parent 4221ed1ef1
commit d7718ad57f

View File

@@ -22,8 +22,7 @@ url_changelog = "https://gitlab.eterfund.ru/Castro-Fidel/PortWINE/raw/master/dat
heads_site = {
"Content-Type": "application/json",
"Api-Key": keys.api_key_site,
"Api-Username": "linux-gaming",
"skip_validations": "true"
"Api-Username": "linux-gaming"
}
params_get = {
@@ -247,7 +246,6 @@ def site_post(url, headers, json):
while True:
title = json.get('title')
try:
print(json)
resp_post = requests.post(url=url, headers=headers, json=json)
if resp_post.status_code == 200:
logging.info("Новость опубликована на сайте!")