Ignore:
Timestamp:
Dec 17, 2007, 1:19:11 PM (12 years ago)
Author:
Dominic Hargreaves
Message:

make some more messages verbose-only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/scripts/freethepostcode.org-importer/importer.py

    r621 r622  
    9898if download:
    9999        url = "http://www.freethepostcode.org/currentlist"
    100         print "Downloading from %s" % url
     100        if verbose:
     101                print "Downloading from %s" % url
    101102        os.system("wget --quiet -O currentlist '%s'" % url)
    102103        current_file = "currentlist"
     
    218219
    219220# Find ones that have gone
    220 print "\nDeleting any postcodes no longer in FTP:"
     221if verbose:
     222        print "\nDeleting any postcodes no longer in FTP:"
    221223for gone_pc in [ pc for pc in ftps.keys() if not ftps[pc]['done'] ]:
    222224        print "\tflagging as deleted old FTP postcode %s" % gone_pc
     
    224226
    225227# All done
    226 print "\nAll Done"
     228if verbose:
     229        print "\nAll Done"
    227230sth.close()
    228231dbh.commit()
Note: See TracChangeset for help on using the changeset viewer.