From b9b5613f18410a85f79d1cb3581810950542708c Mon Sep 17 00:00:00 2001 From: Taras Terletskyi <888784+tropicoo@users.noreply.github.com> Date: Tue, 28 Mar 2023 22:54:06 +0300 Subject: [PATCH] fix --- app_bot/bot/core/service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app_bot/bot/core/service.py b/app_bot/bot/core/service.py index 8000e1d..f6e5d4f 100644 --- a/app_bot/bot/core/service.py +++ b/app_bot/bot/core/service.py @@ -63,5 +63,7 @@ class UrlParser: for url, regex in product(urls, regexes): if re.match(regex, url): valid.append(url) + + valid = list(dict.fromkeys(valid)) self._log.debug('Matched urls: %s', valid) return valid