Skip to content

Commit

Permalink
fix rm ccnet.conf (#436)
Browse files Browse the repository at this point in the history
Co-authored-by: 孙永强 <[email protected]>
  • Loading branch information
awu0403 and 孙永强 authored Dec 17, 2024
1 parent a23df81 commit f1da8ab
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions utils/ccnet_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ def init_ccnet_db(self):
return

db_name = os.environ.get('SEAFILE_MYSQL_DB_CCNET_DB_NAME', '') or 'ccnet_db'
db_host = seafile_config.get('Database', 'host', fallback='127.0.0.1')
db_port = seafile_config.getint('Database', 'port', fallback=3306)
db_user = seafile_config.get('Database', 'user')
db_passwd = seafile_config.get('Database', 'password')
db_host = seafile_config.get('database', 'host', fallback='127.0.0.1')
db_port = seafile_config.getint('database', 'port', fallback=3306)
db_user = seafile_config.get('database', 'user')
db_passwd = seafile_config.get('database', 'password')

try:
self.ccnet_db_conn = pymysql.connect(host=db_host, port=db_port, user=db_user,
Expand Down

0 comments on commit f1da8ab

Please sign in to comment.