Pārlūkot izejas kodu

Fix old reference to query.all_projects.

pull/24/head
Ben Kurtovic pirms 10 gadiem
vecāks
revīzija
f4ff4099be
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. +1
    -1
      copyvios/sites.py

+ 1
- 1
copyvios/sites.py Parādīt failu

@@ -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:


Notiek ielāde…
Atcelt
Saglabāt