check/wip. new asking process if already done
This commit is contained in:
parent
7a3ef0537d
commit
04203ad5bd
|
@ -46,7 +46,14 @@ def manage_check(target):
|
||||||
|
|
||||||
# ... was already check and not changed
|
# ... was already check and not changed
|
||||||
if db.hash_chk == db.hash_post:
|
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
|
# ... Set values for wip and www from DB
|
||||||
date_wip = db.date_wip
|
date_wip = db.date_wip
|
||||||
|
|
|
@ -87,9 +87,13 @@ def manage_wip(target):
|
||||||
wip_article(db.uri_file)
|
wip_article(db.uri_file)
|
||||||
else:
|
else:
|
||||||
logs.out("19", db.date_wip, False)
|
logs.out("19", db.date_wip, False)
|
||||||
ask = ''
|
try:
|
||||||
ask = input(' ├ Create new wip page ? ')
|
res = input(' ├ Create new wip page ? ')
|
||||||
if not ask in ['y', 'Y']: return
|
except KeyboardInterrupt:
|
||||||
|
print('')
|
||||||
|
logs.out("255", '', True)
|
||||||
|
|
||||||
|
if not res in ['y', 'Y']: return
|
||||||
wip_article(db.uri_file)
|
wip_article(db.uri_file)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue