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