Commit aba597f5 authored by Barkin Simsek's avatar Barkin Simsek 🐢
Browse files

Refactor browser container discovery method

parent 8f31517c
......@@ -41,9 +41,10 @@ class UpdateFetchers:
:return: List of web browsers
:rtype: Set
"""
keywords = ["docker", "browser"]
browsers = set()
for config in self.__config.keys():
if "docker" in config and "container" in config:
if all(x in config for x in keywords):
name = config.split("_")
browsers.add(f"{name[1]}_{name[2]}")
return browsers
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment