old_contents: # -*- coding:utf8 -*-
  # Author: shizhenyu96@gamil.com
  # github: https://github.com/imndszy
  import os
  
  
  class Config:
      SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
      SSL_DISABLE = False
      SQLALCHEMY_COMMIT_ON_TEARDOWN = True
      SQLALCHEMY_RECORD_QUERIES = True
      SQLALCHEMY_TRACK_MODIFICATIONS = True
      FLASK_SLOW_DB_QUERY_TIME=0.5
  
      @staticmethod
      def init_app(app):
          pass
  
  
  class DevelopmentConfig(Config):
      DEBUG = True
      SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL') or \
          'mysql+pymysql://szy:123456@localhost/voluntary'
  
  
  class TestingConfig(Config):
      TESTING = True
      SQLALCHEMY_DATABASE_URI = os.environ.get('TEST_DATABASE_URL') or \
          'mysql://szy:123456@localhost/voluntary'
      WTF_CSRF_ENABLED = False
  
  
  class ProductionConfig(Config):
      SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
          'mysql://szy:123456@localhost/voluntary'
  
      @classmethod
      def init_app(cls, app):
          Config.init_app(app)
  
  
  config = {
      'development': DevelopmentConfig,
      'testing': TestingConfig,
      'production': ProductionConfig,
      'default': DevelopmentConfig
  }
  
new_contents: # -*- coding:utf8 -*-
  # Author: shizhenyu96@gamil.com
  # github: https://github.com/imndszy
  import os
  
  
  class Config:
      SECRET_KEY = os.environ.get('SECRET_KEY') or 'hard to guess string'
      SSL_DISABLE = False
      SQLALCHEMY_COMMIT_ON_TEARDOWN = True
      SQLALCHEMY_RECORD_QUERIES = True
      SQLALCHEMY_TRACK_MODIFICATIONS = True
      FLASK_SLOW_DB_QUERY_TIME=0.5
  
      @staticmethod
      def init_app(app):
          pass
  
  
  class DevelopmentConfig(Config):
      DEBUG = True
      SQLALCHEMY_DATABASE_URI = os.environ.get('DEV_DATABASE_URL') or \
          'mysql+pymysql://szy:123456@localhost/voluntary'
  
  
  class TestingConfig(Config):
      TESTING = True
      SQLALCHEMY_DATABASE_URI = os.environ.get('TEST_DATABASE_URL') or \
          'mysql+pymysql://szy:123456@localhost/voluntary'
      WTF_CSRF_ENABLED = False
  
  
  class ProductionConfig(Config):
      SQLALCHEMY_DATABASE_URI = os.environ.get('DATABASE_URL') or \
          'mysql+pymysql://szy:123456@localhost/voluntary'
  
      @classmethod
      def init_app(cls, app):
          Config.init_app(app)
  
  
  config = {
      'development': DevelopmentConfig,
      'testing': TestingConfig,
      'production': ProductionConfig,
      'default': DevelopmentConfig
  }
  
subject: fix bug