Skip to content

Commit

Permalink
fix: db data
Browse files Browse the repository at this point in the history
  • Loading branch information
alguadam committed Oct 2, 2023
1 parent 7e74244 commit f27eaa7
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions iebank_api/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ def hello_world():
def skull():
app.logger.debug('Route /skull GET called')
text = 'Hi! This is the BACKEND SKULL! 💀 '
text = text +'<br/>Database URL:' + db.session.bind.url.database
if db.session.bind.url.host:
text = text +'<br/>Database host:' + db.session.bind.url.host
if db.session.bind.url.port:
text = text +'<br/>Database port:' + db.session.bind.url.port
if db.session.bind.url.username:
text = text +'<br/>Database user:' + db.session.bind.url.username
if db.session.bind.url.password:
text = text +'<br/>Database password:' + db.session.bind.url.password
text = text +'<br/>Database URL:' + db.engine.url.database
if db.engine.url.host:
text = text +'<br/>Database host:' + db.engine.url.host
if db.engine.url.port:
text = text +'<br/>Database port:' + db.engine.url.port
if db.engine.url.username:
text = text +'<br/>Database user:' + db.engine.url.username
if db.engine.url.password:
text = text +'<br/>Database password:' + db.engine.url.password
return text


Expand Down

0 comments on commit f27eaa7

Please sign in to comment.