瀏覽代碼

Fix old reference to query.all_projects.

pull/24/head
Ben Kurtovic 10 年之前
父節點
當前提交
f4ff4099be
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      copyvios/sites.py

+ 1
- 1
copyvios/sites.py 查看文件

@@ -12,7 +12,7 @@ __all__ = ["get_site", "update_sites"]
def get_site(query):
lang, project, name = query.lang, query.project, query.name
wiki = cache.bot.wiki
if project not in [proj[0] for proj in query.all_projects]:
if project not in [proj[0] for proj in cache.projects]:
return None
if project == "wikimedia" and name: # Special sites:
try:


Loading…
取消
儲存