Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0790e6bc98 |
@@ -62,6 +62,12 @@ class Muell:
|
||||
'User-Agent': 'Mozilla/5.0 (Linux; x68_64; x64; rv:88.0) Gecko/20100101 Firefox/88.0',
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
}
|
||||
|
||||
try:
|
||||
self.__name = self.__config['name']
|
||||
except KeyError:
|
||||
self.__name = None
|
||||
|
||||
kommune = self.__config['kommune']
|
||||
self.__csv = f'muell-{kommune}-{self.__current_year}.csv'
|
||||
|
||||
@@ -176,6 +182,9 @@ class Muell:
|
||||
|
||||
if len(tonnen) > 0:
|
||||
tonnen = ' und '.join(tonnen)
|
||||
if self.__name is not None:
|
||||
ausgabe = f'{self.__name}: Morgen {wird} {tonnen} abgeholt'
|
||||
else:
|
||||
ausgabe = f'Morgen {wird} {tonnen} abgeholt'
|
||||
else:
|
||||
ausgabe = None
|
||||
|
||||
Reference in New Issue
Block a user