Bladeren bron

Default to useHTTPS=True for new Sites.

tags/v0.2
Ben Kurtovic 9 jaren geleden
bovenliggende
commit
b315e9bdc5
2 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. +1
    -1
      earwigbot/wiki/site.py
  2. +1
    -1
      earwigbot/wiki/sitesdb.py

+ 1
- 1
earwigbot/wiki/site.py Bestand weergeven

@@ -89,7 +89,7 @@ class Site(object):
def __init__(self, name=None, project=None, lang=None, base_url=None,
article_path=None, script_path=None, sql=None,
namespaces=None, login=(None, None), cookiejar=None,
user_agent=None, use_https=False, assert_edit=None,
user_agent=None, use_https=True, assert_edit=None,
maxlag=None, wait_between_queries=2, logger=None,
search_config=None):
"""Constructor for new Site instances.


+ 1
- 1
earwigbot/wiki/sitesdb.py Bestand weergeven

@@ -188,7 +188,7 @@ class SitesDB(object):
config = self.config
login = (config.wiki.get("username"), config.wiki.get("password"))
user_agent = config.wiki.get("userAgent")
use_https = config.wiki.get("useHTTPS", False)
use_https = config.wiki.get("useHTTPS", True)
assert_edit = config.wiki.get("assert")
maxlag = config.wiki.get("maxlag")
wait_between_queries = config.wiki.get("waitTime", 2)


Laden…
Annuleren
Opslaan