|
@@ -36,7 +36,7 @@ class Artifact:
|
|
|
|
|
|
def __init__(self, id, date, changelog, artifacts):
|
|
def __init__(self, id, date, changelog, artifacts):
|
|
self.id = id
|
|
self.id = id
|
|
- self.date = date
|
|
|
|
|
|
+ self.date = date.strip()
|
|
self.changelog = changelog
|
|
self.changelog = changelog
|
|
self.artifacts = [ArtifactItem(**item)
|
|
self.artifacts = [ArtifactItem(**item)
|
|
for item in artifacts]
|
|
for item in artifacts]
|
|
@@ -140,14 +140,5 @@ def index():
|
|
projects = get_projects()
|
|
projects = get_projects()
|
|
return render_template("main.html", projects=projects)
|
|
return render_template("main.html", projects=projects)
|
|
|
|
|
|
-@app.template_filter('timestamp')
|
|
|
|
-def timestamp_filter(filename):
|
|
|
|
- try:
|
|
|
|
- timestamp = str(os.path.getmtime(filename[1:]))
|
|
|
|
- except OSError:
|
|
|
|
- return filename
|
|
|
|
- newfilename = "{0}?v={1}".format(filename, timestamp)
|
|
|
|
- return newfilename
|
|
|
|
-
|
|
|
|
if __name__ == "__main__":
|
|
if __name__ == "__main__":
|
|
app.run(host='0.0.0.0')
|
|
app.run(host='0.0.0.0')
|