use nopublish option in all cases
This commit is contained in:
parent
c8f4d90d87
commit
a2616972f1
@ -165,14 +165,7 @@ def main (args):
|
|||||||
except OSError:
|
except OSError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
if args.all or args.text:
|
|
||||||
text = getjson(info['localapiurl']+'getText?'+urlencode(data))
|
text = getjson(info['localapiurl']+'getText?'+urlencode(data))
|
||||||
ver = {"type": "text"}
|
|
||||||
versions.append(ver)
|
|
||||||
ver["code"] = text["_code"]
|
|
||||||
if text["_code"] == 200:
|
|
||||||
text = text['data']['text']
|
|
||||||
|
|
||||||
##########################################
|
##########################################
|
||||||
## ENFORCE __NOPUBLISH__ MAGIC WORD
|
## ENFORCE __NOPUBLISH__ MAGIC WORD
|
||||||
##########################################
|
##########################################
|
||||||
@ -182,6 +175,13 @@ def main (args):
|
|||||||
try_deleting((p+raw_ext,p+".raw.html",p+".diff.html",p+".meta.json"))
|
try_deleting((p+raw_ext,p+".raw.html",p+".diff.html",p+".meta.json"))
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if args.all or args.text:
|
||||||
|
ver = {"type": "text"}
|
||||||
|
versions.append(ver)
|
||||||
|
ver["code"] = text["_code"]
|
||||||
|
if text["_code"] == 200:
|
||||||
|
text = text['data']['text']
|
||||||
|
|
||||||
ver["path"] = p+raw_ext
|
ver["path"] = p+raw_ext
|
||||||
ver["url"] = quote(ver["path"])
|
ver["url"] = quote(ver["path"])
|
||||||
with open(ver["path"], "w") as f:
|
with open(ver["path"], "w") as f:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user