Changeset 2423


Ignore:
Timestamp:
20/04/07 16:42:37 (12 years ago)
Author:
selatham
Message:

fixed bug in ingest - not clearing out intermediate directory.

Location:
TI01-discovery/trunk/ingestAutomation/OAIBatch
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/trunk/ingestAutomation/OAIBatch/SpaceTimeIngestFromMOLES.py

    r2421 r2423  
    3737        if str(enddate)=='noenddate': 
    3838            sql=sql.replace("enddate"," ") 
     39            sql=sql.replace("'no '"," ") 
    3940            sql=sql.replace("'"+enddate+"',"," ") 
    4041        if str(west)=='null' or str(south)=='null' or str(east)=='null' or str(north)=='null': 
  • TI01-discovery/trunk/ingestAutomation/OAIBatch/oai_ingest.py

    r2329 r2423  
    154154# Create/clear the directory for the 'out' namespace corrected copy of the discovery records. 
    155155if os.path.isdir("/usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery_corrected"): 
    156     commandline = "ls -1 /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/ | xargs -i rm /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/{\}" 
     156    commandline = "ls -1 /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery/ | xargs -i rm /usr/local/WSClients/OAIBatch/data/" + datacentre +"/discovery_corrected/{\}" 
    157157    print "Executing : " + commandline 
    158158    status = os.system(commandline) 
Note: See TracChangeset for help on using the changeset viewer.