Skip to content

Commit

Permalink
remove ;in index.py
Browse files Browse the repository at this point in the history
  • Loading branch information
wzcboss committed Jul 24, 2017
1 parent fd8d7ac commit c6245b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compose/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class HandlerClass(SimpleHTTPRequestHandler):
del request[addr_pair]
request[addr_pair]=[num,ts]
file=open("index.html", "w")
file.write("<!DOCTYPE html> <html> <body><center><h1><font color=\"blue\" face=\"Georgia, Arial\" size=8><em>HA</em></font> Webpage Visit Results</h1></center>");
file.write("<!DOCTYPE html> <html> <body><center><h1><font color=\"blue\" face=\"Georgia, Arial\" size=8><em>HA</em></font> Webpage Visit Results</h1></center>")
for pair in request:
if pair[0] == host:
guest = "LOCAL: "+pair[0]
Expand All @@ -72,7 +72,7 @@ class HandlerClass(SimpleHTTPRequestHandler):
file.write("<p style=\"font-size:150%\" >#"+ str(request[pair][1]) +": <font color=\"red\">"+str(request[pair][0])+ "</font> requests " + "from &lt<font color=\"blue\">"+guest+"</font>&gt to WebServer &lt<font color=\"blue\">"+pair[1]+"</font>&gt</p>")
else:
file.write("<p style=\"font-size:150%\" >#"+ str(request[pair][1]) +": <font color=\"maroon\">"+str(request[pair][0])+ "</font> requests " + "from &lt<font color=\"navy\">"+guest+"</font>&gt to WebServer &lt<font color=\"navy\">"+pair[1]+"</font>&gt</p>")
file.write("</body> </html>");
file.write("</body> </html>")
file.close()
pickle.dump(request,open("pickle_data.txt","w"))

Expand Down

0 comments on commit c6245b2

Please sign in to comment.