Skip to content

Commit

Permalink
fix create tables if not prod
Browse files Browse the repository at this point in the history
  • Loading branch information
korikuzma committed Mar 30, 2021
1 parent 6953515 commit 6f80bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gene/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6f80bf5

Please sign in to comment.