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))