瀏覽代碼

Fix substring error.

tags/v1.0^2
Ben Kurtovic 10 年之前
父節點
當前提交
f3bf38c00b
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      bitshift/database/__init__.py

+ 1
- 1
bitshift/database/__init__.py 查看文件

@@ -131,7 +131,7 @@ class Database(object):

def _decompose_url(self, cursor, url):
"""Break up a URL into an origin (with a URL base) and a suffix."""
query = """SELECT origin_id, SUBSTR(?, LENGTH(origin_url_base))
query = """SELECT origin_id, SUBSTR(?, LENGTH(origin_url_base) + 1)
FROM origins
WHERE origin_url_base IS NOT NULL
AND ? LIKE CONCAT(origin_url_base, "%")"""


Loading…
取消
儲存