From 76fba3ed84158097e9b0d1894679009b36867cd9 Mon Sep 17 00:00:00 2001 From: Toast Date: Fri, 30 May 2025 21:53:06 +0200 Subject: [PATCH] Mod: return list of authors Closes #13 --- src/leek/mod.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/leek/mod.py b/src/leek/mod.py index 3e0809b..b03afb7 100644 --- a/src/leek/mod.py +++ b/src/leek/mod.py @@ -48,15 +48,13 @@ class Mod: return None @property - def author(self) -> str | None: - # TODO: return list with authors + def authors(self) -> list[str] | None: if self.__has_meta_json: if "authors" in self.__meta: - authors: list[str] = self.__meta.get("authors", list[str]) - return ", ".join(authors) + return self.__meta.get("authors", list[str]) if "author" not in self.__config: return None - return self.__config.get("author", str) + return [self.__config.get("author", str)] @property def enabled(self) -> bool: