Добавлено уведомление о начале и конце для другого варианта

This commit is contained in:
2020-04-22 22:51:50 +03:00
parent 02f8f326db
commit 952b692e61

View File

@@ -382,6 +382,8 @@ def another_main():
respondents = int(input(datetime.now().strftime( respondents = int(input(datetime.now().strftime(
'[%X] ') + 'Введите желаемое число респондентов: ')) '[%X] ') + 'Введите желаемое число респондентов: '))
print(datetime.now().strftime('[%X] ') + 'Начало')
with progressbar.ProgressBar(max_value=respondents) as bar: with progressbar.ProgressBar(max_value=respondents) as bar:
for i in range(respondents): for i in range(respondents):
bar.update(i) bar.update(i)
@@ -392,6 +394,8 @@ def another_main():
another_profile_maker() another_profile_maker()
button_by_text('Отправить') button_by_text('Отправить')
print(datetime.now().strftime('[%X] ') + 'Завершено')
if __name__ == '__main__': if __name__ == '__main__':
@@ -399,4 +403,3 @@ if __name__ == '__main__':
another_main() another_main()
except: except:
driver.close() driver.close()