check: fix global post_url
This commit is contained in:
parent
6c0486cd0a
commit
9b24821e47
|
@ -67,6 +67,9 @@ def post_IDs(file_post):
|
|||
file_html = file_post.replace('.tyto','.html')
|
||||
if file_html.endswith('index.html'):
|
||||
file_html = file_html.remplace('index.html', '')
|
||||
|
||||
# Complete URL post file
|
||||
global post_url
|
||||
post_url = '%s%s/%s'%(
|
||||
domain.domain_protocol, domain.domain_name, file_html
|
||||
)
|
||||
|
|
|
@ -129,9 +129,14 @@ def manage_wip(file_post, Force):
|
|||
page_file.write(wip_html)
|
||||
page_file.close()
|
||||
|
||||
post_uri = '%s%s'%(domain.domain_articles, file_post)
|
||||
time_wip = log.nowdate()
|
||||
print("T",time_wip)
|
||||
hash_wip = check.get_filesum(post_uri, True)
|
||||
|
||||
rep_post_wip = 'post_wip = %s'%str(check.post_wip)
|
||||
tmp_post_wip = ('"%s"'%hash_wip, '"%s"'%time_wip)
|
||||
post_wip = 'post_wip = %s'%str(tmp_post_wip)
|
||||
print(rep_post_wip, '>>', post_wip)
|
||||
|
||||
|
||||
#============================#
|
||||
|
|
Loading…
Reference in New Issue