Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit abd1c44

Browse files
[coingecko] Use batch add to avoid flicker
1 parent 145b5e9 commit abd1c44

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

coingecko/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
from threading import Thread, Event
1010

1111
md_iid = "3.0"
12-
md_version = "2.0"
12+
md_version = "2.1"
1313
md_name = "CoinGecko"
1414
md_description = "Access CoinGecko"
1515
md_license = "MIT"
@@ -133,6 +133,4 @@ def updateIndexItems(self):
133133
# override default trigger handling to sort by rank
134134
def handleTriggerQuery(self, query):
135135
m = Matcher(query.string)
136-
for item in self.items:
137-
if m.match(item.symbol, item.name):
138-
query.add(item)
136+
query.add([item for item in self.items if m.match(item.symbol, item.name)])

0 commit comments

Comments
 (0)