Skip to content

Commit

Permalink
depreciation warning added to source scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
dt215git committed Oct 4, 2023
1 parent b32593d commit b8a5406
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import logging
from datetime import datetime

import requests
from bs4 import BeautifulSoup
from waste_collection_schedule import Collection

_LOGGER = logging.getLogger(__name__)

TITLE = "GVA Baden"
DESCRIPTION = "Source for waste collection services Association of Municipalities in the District of Baden"
URL = "https://baden.umweltverbaende.at/"
Expand All @@ -26,6 +29,9 @@ def __init__(self, region):
self._region = region

def fetch(self):
_LOGGER.warning(
"The baden_umweltverbaende_at source is depreciated and may be removed in the future. Please migrate to the umweltverbaende_at source"
)
s = requests.Session()
# get list of regions and weblinks
r0 = s.get("https://baden.umweltverbaende.at/?kat=32")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import logging
from datetime import datetime

import requests
from bs4 import BeautifulSoup
from waste_collection_schedule import Collection

_LOGGER = logging.getLogger(__name__)

TITLE = "GVU Scheibbs"
DESCRIPTION = "Source for waste collection services Association of Municipalities in the District of Scheibbs"
URL = "https://scheibbs.umweltverbaende.at/"
Expand All @@ -26,6 +29,9 @@ def __init__(self, region):
self._region = region

def fetch(self):
_LOGGER.warning(
"The scheibbs_umweltverbaende_at source is depreciated and may be removed in the future. Please migrate to the umweltverbaende_at source"
)
s = requests.Session()
# get list of regions and weblinks
r0 = s.get("https://scheibbs.umweltverbaende.at/?kat=32")
Expand Down

0 comments on commit b8a5406

Please sign in to comment.