Adopt changes from scraper in the booker script

This commit is contained in:
Jan Losinski 2019-01-21 16:03:13 +01:00
parent 40a0c09384
commit 25be5e6cea
1 changed files with 3 additions and 3 deletions

View File

@ -35,8 +35,8 @@ if __name__ == "__main__":
logger.info("Try to get an appointment at %s", datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
data = BookingData(name=args.name, email=args.email)
svc = BookingService(url, debug=False)
for booked in svc.book(data):
if data == booked:
booking = svc.book(data)
if booking is not None:
break
time.sleep(max(30, args.interval))
except KeyboardInterrupt: