Browse Source

Fix SitesDB lookup for sites with overlapping URLs.

tags/v0.3
Ben Kurtovic 8 years ago
parent
commit
aed5a5954d
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      earwigbot/wiki/sitesdb.py

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

@@ -239,7 +239,7 @@ class SitesDB(object):
if site:
return site[0]
else:
url = "%{0}.{1}%".format(lang, project)
url = "//{0}.{1}.%".format(lang, project)
site = conn.execute(query2, (url,)).fetchone()
return site[0] if site else None
except sqlite.OperationalError:


Loading…
Cancel
Save