Merge pull request #2 from Krakinou/flaskldap

Solve typo
This commit is contained in:
Krakinou 2019-06-14 22:56:21 +02:00 committed by GitHub
commit 4437d7376d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -432,7 +432,7 @@ class Config:
self.config_ldap_require_cert = data.config_ldap_require_cert self.config_ldap_require_cert = data.config_ldap_require_cert
self.config_ldap_cert_path = data.config_ldap_cert_path self.config_ldap_cert_path = data.config_ldap_cert_path
self.config_ldap_dn = data.config_ldap_dn self.config_ldap_dn = data.config_ldap_dn
self.config_ldap_user_object = data.config_ldap_user_object self.config_ldap_user_object = data.config_ldap_user_object
self.config_ldap_openldap = data.config_ldap_openldap self.config_ldap_openldap = data.config_ldap_openldap
if data.config_mature_content_tags: if data.config_mature_content_tags:
self.config_mature_content_tags = data.config_mature_content_tags self.config_mature_content_tags = data.config_mature_content_tags
@ -751,7 +751,7 @@ def migrate_Database():
session.query(exists().where(Settings.config_ldap_schema)).scalar() session.query(exists().where(Settings.config_ldap_schema)).scalar()
except exc.OperationalError: except exc.OperationalError:
conn = engine.connect() conn = engine.connect()
conn.execute("ALTER TABLE Settings ADD column `config_ldap_schema ` String DEFAULT ''") conn.execute("ALTER TABLE Settings ADD column `config_ldap_schema` String DEFAULT ''")
session.commit() session.commit()
try: try:
session.query(exists().where(Settings.config_ldap_serv_username)).scalar() session.query(exists().where(Settings.config_ldap_serv_username)).scalar()
@ -770,7 +770,7 @@ def migrate_Database():
session.query(exists().where(Settings.config_ldap_use_tls)).scalar() session.query(exists().where(Settings.config_ldap_use_tls)).scalar()
except exc.OperationalError: except exc.OperationalError:
conn = engine.connect() conn = engine.connect()
conn.execute("ALTER TABLE Settings ADD column `cconfig_ldap_use_tls` INTEGER DEFAULT 0") conn.execute("ALTER TABLE Settings ADD column `config_ldap_use_tls` INTEGER DEFAULT 0")
session.commit() session.commit()
try: try:
session.query(exists().where(Settings.config_ldap_require_cert)).scalar() session.query(exists().where(Settings.config_ldap_require_cert)).scalar()