Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OSUG
RESIF
resif_data_reporter
Commits
ad33ac1a
Commit
ad33ac1a
authored
Jul 23, 2021
by
Jonathan Schaeffer
Browse files
Postgres password from env
parent
349fa7b3
Pipeline
#71832
passed with stage
in 1 minute and 19 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
config.yml.example
View file @
ad33ac1a
#
# Configuration file for resif_data_reporter.py
#
cache_ttl: 30 # days
volumes: # list of directories to scan
- name: path1
path: /path/1
...
...
resifdatareporter/resifdatareporter.py
View file @
ad33ac1a
...
...
@@ -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
]
...
...
setup.py
View file @
ad33ac1a
...
...
@@ -7,7 +7,7 @@ with open('README.md', 'r', encoding='utf-8') as f:
setup
(
name
=
'resifdatareporter'
,
version
=
'0.5
0
.0'
,
version
=
'0.5
1
.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"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment