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
Post a Comment