Merge pull request #1 from apache/sebbASF-patch-1
Dangerous default value [] as argument
diff --git a/plugins/background.py b/plugins/background.py
index a1abed5..c5c9c1c 100644
--- a/plugins/background.py
+++ b/plugins/background.py
@@ -38,7 +38,7 @@
aggtype: typing.Literal["bytes", "requests"] = "requests",
duration: str = "12h",
no_hits: int = 100,
- filters: typing.List[str] = [],
+ filters: typing.List[str] = None,
) -> typing.List[typing.Tuple[str, int]]:
"""Finds the top clients (IPs) in the database based on the parameters provided.
Searches for the top clients by either traffic volume (bytes) or requests."""