Mercurial > repos > greg > update_stag_database
changeset 5:c34d08494c35 draft
Uploaded
author | greg |
---|---|
date | Wed, 26 Aug 2020 13:50:13 -0400 |
parents | 852b9fd0e3cd |
children | 2a614e6ca848 |
files | update_stag_database.py |
diffstat | 1 files changed, 6 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/update_stag_database.py Tue Nov 19 09:36:05 2019 -0500 +++ b/update_stag_database.py Wed Aug 26 13:50:13 2020 -0400 @@ -3,17 +3,18 @@ import argparse import datetime -import dateutil.parser import os -import psycopg2 -import string import subprocess import sys +import dateutil.parser + +import psycopg2 + from six.moves import configparser +from sqlalchemy import MetaData from sqlalchemy import create_engine -from sqlalchemy import MetaData from sqlalchemy.engine.url import make_url now = datetime.datetime.utcnow @@ -42,7 +43,7 @@ config_parser.read(config_file) for key, value in config_parser.items(section): if section == 'defaults': - d[string.upper(key)] = value + d[key.upper()] = value else: d[key] = value return d