From 35a19f30aeaf7fb99cccc5b8b01dbc0f4daf4b35 Mon Sep 17 00:00:00 2001 From: lilydjwg Date: Sat, 9 Mar 2024 18:45:19 +0800 Subject: [PATCH] mercurial: minor update --- docs/usage.rst | 2 +- nvchecker_source/mercurial.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/usage.rst b/docs/usage.rst index db7c643..994044b 100644 --- a/docs/usage.rst +++ b/docs/usage.rst @@ -838,7 +838,7 @@ Check Mercurial repository source = "mercurial" -This enables you to check tags of an arbitrary mercurial repository. +This enables you to check tags of an arbitrary mercurial (hg) repository. mercurial URL of the Mercurial repository. diff --git a/nvchecker_source/mercurial.py b/nvchecker_source/mercurial.py index db3cd34..92342c8 100644 --- a/nvchecker_source/mercurial.py +++ b/nvchecker_source/mercurial.py @@ -2,7 +2,7 @@ # Copyright (c) 2020 Felix Yan , et al. async def get_version(name, conf, *, cache, **kwargs): - url = conf.get('mercurial') + '/json-tags' + url = conf['mercurial'] + '/json-tags' data = await cache.get_json(url)