clean up output

main
lub 4 weeks ago
parent 16c777218c
commit 0447897b3a

@ -26,12 +26,14 @@ def scrape():
time = timespan.split(' ')[0]
output += time
output += ' Uhr'
if time != 'Ganztags':
output += ' Uhr'
output += ', '
# place
output += data[2].text.strip()
output += ', '
if len(data) > 2:
output += data[2].text.strip()
output += ', '
# title
output += '<b>'
@ -49,9 +51,6 @@ def scrape():
return output
class SimpleHTTPRequestHandler(BaseHTTPRequestHandler):
def do_GET(self):
current_time = time()

Loading…
Cancel
Save