changeset 5:a28d731977da

merge
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Wed, 19 Feb 2020 10:41:59 +0000
parents 462179da7dc2 (diff) cbd13beb0922 (current diff)
children 0f494c76a887
files bin/plinks.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/bin/plinks.py	Tue Feb 18 22:41:08 2020 +0000
+++ b/bin/plinks.py	Wed Feb 19 10:41:59 2020 +0000
@@ -13,7 +13,8 @@
     (fno,f)=l.rstrip().split()
     try:
       links=run(f)
-      if links:
+      if bool(links) and (links.get('scrape',False) or
+                          links.get('annot',False)):
         with open('/dev/shm/x/links_%s'%fno,'w') as of:
           for k in links.keys():
             for l in links[k]: