From 2de30c0acdbcc2560ee7c9c472df956441cb2bab Mon Sep 17 00:00:00 2001 From: Vanilla <25173827+VergeDX@users.noreply.github.com> Date: Sat, 18 Jun 2022 16:27:17 +0800 Subject: [PATCH] vsmarketplace: use better filterType fixes #216. --- nvchecker_source/vsmarketplace.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvchecker_source/vsmarketplace.py b/nvchecker_source/vsmarketplace.py index 265829e..cb5035f 100644 --- a/nvchecker_source/vsmarketplace.py +++ b/nvchecker_source/vsmarketplace.py @@ -25,7 +25,7 @@ async def get_version(name: str, conf: Entry, *, cache: AsyncCache, **kwargs): 'value': 'Microsoft.VisualStudio.Code' }, { - 'filterType': 10, + 'filterType': 7, 'value': name }, { @@ -51,4 +51,4 @@ async def get_version(name: str, conf: Entry, *, cache: AsyncCache, **kwargs): j = res.json() version = j['results'][0]['extensions'][0]['versions'][0]['version'] - return version \ No newline at end of file + return version