Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Silva <sebastian@somosazucar.org>2014-07-06 08:05:07 (GMT)
committer Sebastian Silva <sebastian@somosazucar.org>2014-07-06 08:05:07 (GMT)
commitd008178250d81b986228ff58979b2cfae4189c71 (patch)
tree2c1ed7f39e72bde84309c08b1e0b8a87367a6835
parentc7c5377e77093f59341a8e3d5cbdfd69c35e1dc1 (diff)
Fix issue viewing artifacts after upload.production
-rw-r--r--sugar_network_webui/app.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sugar_network_webui/app.py b/sugar_network_webui/app.py
index 93e6d6d..7d9007b 100644
--- a/sugar_network_webui/app.py
+++ b/sugar_network_webui/app.py
@@ -316,6 +316,7 @@ def artifact_post():
artifact.post()
if filename:
artifact.upload_blob('data', upload.read(), upload.content_type)
+ g.Artifacts._reset()
return redirect('/context/artifacts/' + request.form['context'])
@@ -633,6 +634,7 @@ def project_browser(context_guid=None):
@app.route('/reload/<path:href>')
def reload(href=None):
+ g.Artifacts._reset()
g.Solutions._reset()
g.Comments._reset()
g.Contexts._reset()