瀏覽代碼

autoping and autoreconnect for site connections

tags/v0.1^2
Ben Kurtovic 12 年之前
父節點
當前提交
d8ab0f3539
共有 1 個檔案被更改,包括 6 行新增0 行删除
  1. +6
    -0
      earwigbot/wiki/site.py

+ 6
- 0
earwigbot/wiki/site.py 查看文件

@@ -513,6 +513,12 @@ class Site(object):
if "read_default_file" not in args and "user" not in args and "passwd" not in args:
args["read_default_file"] = expanduser("~/.my.cnf")

if "autoping" not in args:
args["autoping"] = True

if "autoreconnect" not in args:
args["autoreconnect"] = True

self._sql_conn = oursql.connect(**args)

def name(self):


Loading…
取消
儲存