mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-15 01:05:42 +00:00
Merge branch 'development' of gitlab.ub.uni-bielefeld.de:sfb1288inf/opaque into development
This commit is contained in:
commit
f189460543
@ -22,7 +22,8 @@ class AddNLPJobForm(FlaskForm):
|
|||||||
submit = SubmitField()
|
submit = SubmitField()
|
||||||
title = StringField('Title', validators=[DataRequired(), Length(1, 32)])
|
title = StringField('Title', validators=[DataRequired(), Length(1, 32)])
|
||||||
version = SelectField('Version',
|
version = SelectField('Version',
|
||||||
choices=[('2.1.0', 'Latest (2.1.0)'),
|
choices=[('2.2.0', 'Latest (2.2.0)'),
|
||||||
|
('2.2.0', '2.2.0'),
|
||||||
('2.1.0', '2.1.0')],
|
('2.1.0', '2.1.0')],
|
||||||
validators=[DataRequired()])
|
validators=[DataRequired()])
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@ class Config:
|
|||||||
MAIL_DEFAULT_SENDER = os.environ.get('MAIL_DEFAULT_SENDER')
|
MAIL_DEFAULT_SENDER = os.environ.get('MAIL_DEFAULT_SENDER')
|
||||||
|
|
||||||
''' ### Flask-SQLAlchemy ### '''
|
''' ### Flask-SQLAlchemy ### '''
|
||||||
|
SQLALCHEMY_ENGINE_OPTIONS = {'pool_size': 30, 'pool_timeout': 30}
|
||||||
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
SQLALCHEMY_TRACK_MODIFICATIONS = False
|
||||||
|
|
||||||
''' ### Opaque ### '''
|
''' ### Opaque ### '''
|
||||||
@ -31,8 +32,6 @@ class DevelopmentConfig(Config):
|
|||||||
DEBUG = True
|
DEBUG = True
|
||||||
|
|
||||||
''' ### Flask-SQLAlchemy ### '''
|
''' ### Flask-SQLAlchemy ### '''
|
||||||
SQLALCHEMY_ENGINE_OPTIONS = {'pool_size': 30,
|
|
||||||
'pool_timeout': 30}
|
|
||||||
SQLALCHEMY_DATABASE_URI = 'postgresql://{}:{}@db/{}'.format(
|
SQLALCHEMY_DATABASE_URI = 'postgresql://{}:{}@db/{}'.format(
|
||||||
os.environ.get('POSTGRES_USER'),
|
os.environ.get('POSTGRES_USER'),
|
||||||
os.environ.get('POSTGRES_PASSWORD'),
|
os.environ.get('POSTGRES_PASSWORD'),
|
||||||
|
Loading…
Reference in New Issue
Block a user