Torma Kristóf
c20b5f7c98
All checks were successful
continuous-integration/drone/push Build is passing
15 lines
312 B
Python
15 lines
312 B
Python
#!/usr/bin/env python3
|
|
|
|
from model import db
|
|
|
|
|
|
def health_database_status():
|
|
is_database_working = True
|
|
output = 'database is ok'
|
|
try:
|
|
db.session.execute('SELECT 1')
|
|
except Exception as e:
|
|
output = str(e)
|
|
is_database_working = False
|
|
return is_database_working, output
|