check/wip. new asking process if already done

This commit is contained in:
Cyrille L 2023-03-07 13:28:37 +01:00
parent 7a3ef0537d
commit 04203ad5bd
2 changed files with 15 additions and 4 deletions

View File

@ -46,7 +46,14 @@ def manage_check(target):
# ... was already check and not changed
if db.hash_chk == db.hash_post:
logs.out("20", db.date_chk, True)
logs.out("20", db.date_chk, False)
ask = ' ├ Check again this article ? '
try:
res = input(ask)
except KeyboardInterrupt:
print('')
logs.out("255", '', True)
if not res in ['y', 'Y']: return
# ... Set values for wip and www from DB
date_wip = db.date_wip

View File

@ -87,9 +87,13 @@ def manage_wip(target):
wip_article(db.uri_file)
else:
logs.out("19", db.date_wip, False)
ask = ''
ask = input(' ├ Create new wip page ? ')
if not ask in ['y', 'Y']: return
try:
res = input(' ├ Create new wip page ? ')
except KeyboardInterrupt:
print('')
logs.out("255", '', True)
if not res in ['y', 'Y']: return
wip_article(db.uri_file)