Changeset 7083 for cows_wps


Ignore:
Timestamp:
25/06/10 08:57:11 (9 years ago)
Author:
astephen
Message:

fix

File:
1 edited

Legend:

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

    r7082 r7083  
    3838 
    3939    progress = 5 # % of way through 
    40     for (start_date, end_date) in time_splits:  
     40 
     41    for (count, (start_date, end_date)) in enumerate(time_splits):  
    4142 
    4243        # Add appropriate hours and minutes to date strings to make 12 character times 
     
    6162 
    6263        # Report on progress 
    63         progress += (int(list(time_splits).index((start_date, end_date)) / len(time_splits)) * 100 - 5) 
     64        progress += (int(count / len(time_splits) * 100) - 5) 
    6465        context.setStatus(STATUS.STARTED, 'Job is now running', progress) 
    6566         
Note: See TracChangeset for help on using the changeset viewer.