mirror of https://gitlab.com/bashrc2/epicyon
Debug
parent
f35e9271d3
commit
babc4cae64
2
inbox.py
2
inbox.py
|
@ -380,6 +380,7 @@ def store_hash_tags(base_dir: str, nickname: str, domain: str,
|
|||
add_tag_map_links(tag_maps_dir, tag_name, map_links,
|
||||
published, post_url)
|
||||
hashtag_added = False
|
||||
print('**** tag_line ' + tag_line.replace('\n', '<CR>'))
|
||||
if not os.path.isfile(tags_filename):
|
||||
try:
|
||||
with open(tags_filename, 'w+', encoding='utf-8') as tags_file:
|
||||
|
@ -395,6 +396,7 @@ def store_hash_tags(base_dir: str, nickname: str, domain: str,
|
|||
except OSError:
|
||||
pass
|
||||
if post_url not in content:
|
||||
print('**** tag_line2 ' + content.replace('\n', '<CR>'))
|
||||
content = tag_line + content
|
||||
try:
|
||||
with open(tags_filename, 'w+',
|
||||
|
|
2
maps.py
2
maps.py
|
@ -482,7 +482,7 @@ def _hashtag_map_to_kml(base_dir: str, tag_name: str,
|
|||
map_links = []
|
||||
try:
|
||||
with open(tag_map_filename, 'r', encoding='utf-8') as fp_tag:
|
||||
map_links = fp_tag.readlines()
|
||||
map_links = fp_tag.read().split('\n')
|
||||
except OSError:
|
||||
print('EX: unable to read tag map links ' + tag_map_filename)
|
||||
if map_links:
|
||||
|
|
Loading…
Reference in New Issue