mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-30 20:43:50 -06:00
20 lines
500 B
Python
20 lines
500 B
Python
##########################################################################
|
|
#
|
|
# pgAdmin 4 - PostgreSQL Tools
|
|
#
|
|
# Copyright (C) 2013 - 2018, The pgAdmin Development Team
|
|
# This software is released under the PostgreSQL Licence
|
|
#
|
|
##########################################################################
|
|
|
|
from pgadmin.model import Version
|
|
|
|
|
|
def get_version():
|
|
try:
|
|
version = Version.query.filter_by(name='ConfigDB').first()
|
|
except Exception:
|
|
return -1
|
|
|
|
return version.value
|