From 428fb6532476b0981a298fe5744f7ecabf96bd0a Mon Sep 17 00:00:00 2001 From: Jody Phelan Date: Tue, 16 Jul 2024 18:47:03 +0100 Subject: [PATCH] add schema to db --- pathogenprofiler/db.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pathogenprofiler/db.py b/pathogenprofiler/db.py index 9b327cd..3f5295c 100644 --- a/pathogenprofiler/db.py +++ b/pathogenprofiler/db.py @@ -479,6 +479,9 @@ def create_db(args,extra_files = None): version["Author"] = args.db_author if args.db_author else "NA" variables['version'] = version + if 'db-schema-version' in variables: + variables['version']['db-schema-version'] = variables['db-schema-version'] + json.dump(db,open(json_file,"w"))