python - ProgressBar Start at 1 Instead of 0 -


i have progress bar looks this:

employees = ["1g8764897", "1j6734897", "1j5292897"] jobs = len(employees) print  widgets = ['processed: ', counter(), ' of ', str(len(employees)),  ' profiles (', timer(), ')'] pbar = progressbar(widgets=widgets) in pbar((i in employees)):     time.sleep(.01)     fetchdata(i) print "done" 

but when runs, finishes "2 out of 3 completed". 3 out of 3 completed, , start counting @ 1 instead of 0. cant figure out how life of me, appreciated.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -