Commit ad33ac1a authored by Jonathan Schaeffer's avatar Jonathan Schaeffer
Browse files

Postgres password from env

parent 349fa7b3
Pipeline #71832 passed with stage
in 1 minute and 19 seconds
#
# Configuration file for resif_data_reporter.py
#
cache_ttl: 30 # days
volumes: # list of directories to scan
- name: path1
path: /path/1
......
......@@ -145,7 +145,7 @@ def cli(configfile, force_scan, dryrun, verbose, version):
if not force_scan:
# Get last stat date
conn = psycopg2.connect(dbname=cfg['postgres']['database'], user=cfg['postgres']['user'],
host=cfg['postgres']['host'], password=cfg['postgres']['password'], port=cfg['postgres']['port'])
host=cfg['postgres']['host'], port=cfg['postgres']['port'])
cur = conn.cursor()
cur.execute('select distinct date from dataholdings order by date desc limit 1;')
last_stat_date = cur.fetchone()[0]
......
......@@ -7,7 +7,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
setup(
name='resifdatareporter',
version='0.50.0',
version='0.51.0',
description='Scans the resif data repository and compute metrics. Sends the result in a postgres database',
long_description=readme,
long_description_content_type="text/markdown",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment