diff options
-rw-r--r-- | sugar_network_webui/app.py | 2 |
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() |