Skip to content

Commit

Permalink
fix landkreis_kusel_de (#1371)
Browse files Browse the repository at this point in the history
Co-authored-by: 5ila5 <5ila5@users.noreply.github.com>
  • Loading branch information
5ila5 and 5ila5 authored Oct 31, 2023
1 parent 18a2dae commit d186b84
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from datetime import datetime, timedelta

import requests
from bs4 import BeautifulSoup, NavigableString
from waste_collection_schedule import Collection # type: ignore[attr-defined]
Expand Down Expand Up @@ -63,12 +65,14 @@ def fetch(self):
raise Exception(
f"could not find matching 'Ortsgemeinde' please check your spelling at {API_URL}"
)

now = datetime.now()
args = {
"search_ak_pickup[akPickup]": pickup_id,
"search_ak_pickup[wasteType]": "0",
"search_ak_pickup[startDate]": "",
"search_ak_pickup[endDate]": "",
"search_ak_pickup[startDate]": now.strftime("%Y-%m-%d"),
"search_ak_pickup[endDate]": (now + timedelta(days=365)).strftime(
"%Y-%m-%d"
),
"search_ak_pickup[search]": "",
}

Expand Down

0 comments on commit d186b84

Please sign in to comment.