summaryrefslogtreecommitdiff
path: root/searx
diff options
context:
space:
mode:
Diffstat (limited to 'searx')
-rw-r--r--searx/infopage/__init__.py9
-rw-r--r--searx/infopage/en/donate.md21
2 files changed, 7 insertions, 23 deletions
diff --git a/searx/infopage/__init__.py b/searx/infopage/__init__.py
index 730d50a74..6b8fd9133 100644
--- a/searx/infopage/__init__.py
+++ b/searx/infopage/__init__.py
@@ -157,10 +157,9 @@ class InfoPageSet: # pylint: disable=too-few-public-methods
return None
cache_key = (pagename, locale)
- page = self.CACHE.get(cache_key)
- if page is not None:
- return page
+ if cache_key in self.CACHE:
+ return self.CACHE[cache_key]
# not yet instantiated
@@ -183,4 +182,6 @@ class InfoPageSet: # pylint: disable=too-few-public-methods
if fallback_to_default and page is None:
page_locale = self.locale_default
page = self.get_page(page_name, self.locale_default)
- yield page_name, page_locale, page
+ if page is not None:
+ # page is None if the page was deleted by the administrator
+ yield page_name, page_locale, page
diff --git a/searx/infopage/en/donate.md b/searx/infopage/en/donate.md
index 97306a49a..d2e0dbddb 100644
--- a/searx/infopage/en/donate.md
+++ b/searx/infopage/en/donate.md
@@ -1,20 +1,3 @@
-# Donate to SearXNG
+# Donate to searxng.org
-* Credit/debit card and bank transfer
- * [Liberapay] (recurrent donation)
- * [Buy Me a Coffee] (one time donation)
-
-* Cryptocurrency
- * Bitcoin: [bc1qn3rw8t86h05cs3grx2kmwmptw9k4kt4hyzktqj] (Segwit compatible)
- * Bitcoin cash: [qpead2yu482e3h9amy5zk45l8qrfhk59jcpw3cth9e]
- * Ethereum: [0xCf82c7eb915Ee70b5B69C1bBB5525e157F35FA43]
- * Dogecoin: [DBCYS9issTt84pddXSsTHpQxyQDTFp1TE4]
- * Litecoin: [ltc1q5j6x6f4f2htldhq570e353clc8fmw44ra5er5q]
-
-[Liberapay]: https://liberapay.com/SearXNG/
-[Buy Me a Coffee]: https://buymeacoffee.com/searxng
-[bc1qn3rw8t86h05cs3grx2kmwmptw9k4kt4hyzktqj]: bitcoin:bc1qn3rw8t86h05cs3grx2kmwmptw9k4kt4hyzktqj
-[qpead2yu482e3h9amy5zk45l8qrfhk59jcpw3cth9e]: bitcoincash:qpead2yu482e3h9amy5zk45l8qrfhk59jcpw3cth9e
-[0xCf82c7eb915Ee70b5B69C1bBB5525e157F35FA43]: ethereum:0xCf82c7eb915Ee70b5B69C1bBB5525e157F35FA43
-[DBCYS9issTt84pddXSsTHpQxyQDTFp1TE4]: dogecoin:DBCYS9issTt84pddXSsTHpQxyQDTFp1TE4
-[ltc1q5j6x6f4f2htldhq570e353clc8fmw44ra5er5q]: litecoin:ltc1q5j6x6f4f2htldhq570e353clc8fmw44ra5er5q
+You can support the SearXNG project by clicking on the donation page: [https://docs.searxng.org/donate.html](https://docs.searxng.org/donate.html)