Merge branch 'development' of gitlab.ub.uni-bielefeld.de:sfb1288inf/opaque into development

This commit is contained in:
Stephan Porada 2020-01-07 13:03:44 +01:00
commit f189460543
2 changed files with 3 additions and 3 deletions

View File

@ -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()])

View File

@ -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'),