-# Python 3 server example
from http.server import BaseHTTPRequestHandler, HTTPServer
import os
import json
success = success_income + 0
diff_goal = earned - goal
if time_progress >= 0:
- success = success_income / time_progress
+ success = 1
+ if time_progress > 0:
+ success = success_income / time_progress
time_progress_indicator = "<div class=\"time_progress\" style=\"margin-left: %spx\"></div>" % int(time_progress * 100)
return "<tr><th>%s</th>" \
"<td class=\"countable\">%.2f€</td>" \