From 11587472f876907d0890bc6dc4af78a9aa8f8fff Mon Sep 17 00:00:00 2001 From: Amirhossein <66219826+amirhssn@users.noreply.github.com> Date: Wed, 28 Oct 2020 21:48:13 +0330 Subject: [PATCH] Fix flask freezer --- main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 2e86677..1e880a3 100644 --- a/main.py +++ b/main.py @@ -184,7 +184,8 @@ def chat(): @app.route("/papers.json") def papers_json(): - all_papers = site_data["papers"] + all_papers = [] + all_papers.extend(site_data["papers"]) for wsh in site_data["workshops"]: all_papers.extend(wsh.papers) return jsonify(all_papers)