clean up output

main
lub 4 weeks ago
parent 16c777218c
commit 0447897b3a

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

Loading…
Cancel
Save