Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Commit

Permalink
fix: birthyear befor 1974
Browse files Browse the repository at this point in the history
  • Loading branch information
sibalzer committed May 25, 2021
1 parent dfb2c2a commit 4065132
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/impfbot.py
Expand Up @@ -2,6 +2,7 @@
import settings
import api_wrapper
import alerts
from datetime import timedelta, datetime

from common import sleep, sleep_until, is_night

Expand All @@ -10,7 +11,8 @@ def check_for_slot() -> None:
try:
result = api_wrapper.fetch_api(
plz=settings.ZIP,
birthdate_timestamp=settings.BIRTHDATE.timestamp(),
birthdate_timestamp=int(datetime.now().timestamp() - (datetime.now() -
settings.BIRTHDATE).total_seconds()),
max_retries=5,
sleep_after_error=settings.SLEEP_BETWEEN_FAILED_REQUESTS_IN_S,
sleep_after_shadowban=settings.SLEEP_AFTER_DETECTED_SHADOWBAN_IN_MIN
Expand Down

0 comments on commit 4065132

Please sign in to comment.