working on publish template command #3

This commit is contained in:
Cyrille L 2023-03-03 16:08:21 +01:00
parent 0f93066e41
commit 12f483c263
1 changed files with 9 additions and 9 deletions

View File

@ -480,15 +480,15 @@ def create_user_metas(option):
if not res in ['y', 'Y']:
logs.out("255", '', True)
user_file = open(db.metas_load, 'r').read()
user_file = open(db.metas_load, 'r').read()
for line in user_file.rsplit('\n'):
if line.startswith(metas_used):
if user_metas: user_metas = "%s\n %s"%(user_metas, line)
else: user_metas = ' %s'%line
for line in user_file.rsplit('\n'):
if line.startswith(metas_used):
if user_metas: user_metas = "%s\n %s"%(user_metas, line)
else: user_metas = ' %s'%line
tyto.set_file(target, True, user_metas)
print(log_html)
tyto.set_file(target, True, user_metas)
print(log_html)
#=========================================#