updated dockerfile, spacing adjustments

This commit is contained in:
Matthew Scragg 2014-11-17 11:25:26 -06:00
parent b757ceff57
commit 6c7095ec5a
14 changed files with 36 additions and 16 deletions

View file

@ -292,4 +292,4 @@ class Model(db.Model):
@classmethod
def get_by_id(cls, id_):
return cls.query().filter_by(id=id_).first()
return cls.query().filter_by(id=id_).first()

View file

@ -20,4 +20,4 @@ class BaseTest(TestCase):
def tearDown(self):
call(['rm', '-rf', self.app.config['WIKI_PATH']])
call(['rm', '-f', self.app.config['DB_URI'][10:]])
call(['rm', '-f', self.app.config['DB_URI'][10:]])

View file

@ -97,6 +97,7 @@ def to_canonical(s):
s = s.lower()
return s
def cname_to_filename(cname):
""" Convert canonical name to filename
@ -117,6 +118,7 @@ def filename_to_cname(filename):
"""
return os.path.splitext(filename)[0]
def gravatar_url(email):
return "//www.gravatar.com/avatar/" + hashlib.md5(email).hexdigest()