Skip to content

Commit

Permalink
Passage du nom de la db en paramètre
Browse files Browse the repository at this point in the history
  • Loading branch information
marion-paclot committed Oct 31, 2019
1 parent 3685e45 commit b6fe189
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.py
Expand Up @@ -18,7 +18,8 @@
id = config[0][0]
pwd = config[0][1]
host = config[0][2]
engine = create_engine('postgresql://%s:%s@%s/dvf2'%(id, pwd, host))
db = config[0][3]
engine = create_engine('postgresql://%s:%s@%s/%s'%(id, pwd, host, db))

# Chargement des natures de culture plus besoin

Expand Down

0 comments on commit b6fe189

Please sign in to comment.