Ignore:
Timestamp:
25/06/10 09:07:48 (10 years ago)
Author:
astephen
Message:

fixes to status setting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows_wps/trunk/process_modules/lib_extract_uk_station_data/utils.py

    r7083 r7084  
    3737    output_file_paths = [] 
    3838 
    39     progress = 5 # % of way through 
     39    progress = 1 # % of way through 
    4040 
    4141    for (count, (start_date, end_date)) in enumerate(time_splits):  
     
    6262 
    6363        # Report on progress 
    64         progress += (int(count / len(time_splits) * 100) - 5) 
     64        progress += (int(float(count) / len(time_splits) * 100)) 
    6565        context.setStatus(STATUS.STARTED, 'Job is now running', progress) 
     66        context.saveStatus() 
    6667         
    6768    return output_file_paths 
Note: See TracChangeset for help on using the changeset viewer.