Browse Source

Actually, create a copy of the dict.

tags/v0.1^2
Ben Kurtovic 12 years ago
parent
commit
e53efe0e84
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      earwigbot/wiki/sitesdb.py

+ 1
- 1
earwigbot/wiki/sitesdb.py View File

@@ -204,7 +204,7 @@ class SitesDB(object):
search_config["exclusions_db"] = self._exclusions_db

if not sql:
sql = config.wiki.get("sql", {})
sql = config.wiki.get("sql", {}).copy()
for key, value in sql.iteritems():
if isinstance(value, basestring) and "$1" in value:
sql[key] = value.replace("$1", name)


Loading…
Cancel
Save