Commit ca1a575f authored by Emanuele Santoro's avatar Emanuele Santoro

Removed unused variables

This commit removes some unused variables, left from the first
implementation of the project.
parent ad37415f
......@@ -3,9 +3,6 @@ import hashlib
from flask import *
from flask_sqlalchemy import SQLAlchemy
links = dict()
page_cache = dict()
port = int(os.getenv("PORT", "9000"))
musho_url = os.getenv("MUSHO_URL", "http://localhost:%d" % port)
debug = os.getenv("DEBUG", None)
......@@ -40,12 +37,6 @@ class Link(db.Model):
return "<Link '%s' -> '%s'" % (self.short_url, self.full_url)
def page(path) :
if path not in page_cache :
contents = open(path, "r").read()
page_cache[path] = contents
return page_cache[path]
@musho.route("/")
def index() :
return render_template("index.html")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment