From 508b2781f152001e35646465de134e46e3c420ba Mon Sep 17 00:00:00 2001 From: iou1name Date: Sun, 2 Jun 2019 18:26:07 -0400 Subject: [PATCH] add index page to server post() --- overwrought_server.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/overwrought_server.py b/overwrought_server.py index 6ad68e0..0c83844 100644 --- a/overwrought_server.py +++ b/overwrought_server.py @@ -52,8 +52,11 @@ def post(): db.save('modpack.db') app.config.get('db_lock').release() + summary = request.files.get(config_server.modpack_name + '.html') + summary.save(config_server.modpack_name + '.html') + for fname, file in request.files.items(): - if fname == 'modpack.db': + if not fname.endswith('.jar'): continue file.save(os.path.join(config_server.mods_dir, fname))