From 6f80bf5222c180cd31b2721a795d9dbe29fdb46d Mon Sep 17 00:00:00 2001 From: korikuzma Date: Tue, 30 Mar 2021 11:09:02 -0400 Subject: [PATCH] fix create tables if not prod --- gene/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gene/database.py b/gene/database.py index 39489d7c..2f7bfcdc 100644 --- a/gene/database.py +++ b/gene/database.py @@ -45,7 +45,7 @@ def __init__(self, db_url: str = '', region_name: str = 'us-east-2'): self.dynamodb_client = boto3.client('dynamodb', **boto_params) # Create tables if nonexistent if not connecting to production database - if 'GENE_NORM_PROD' not in environ or\ + if 'GENE_NORM_PROD' not in environ and\ 'GENE_NORM_EB_PROD' not in environ: existing_tables = self.dynamodb_client.list_tables()['TableNames'] self.create_genes_table(existing_tables)