We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1b3cf6 commit 08d5725Copy full SHA for 08d5725
1 file changed
leakix/client.py
@@ -25,16 +25,17 @@ class HostResult(Model):
25
Leaks: fields.Optional(fields.List(fields.Nested(l9format.L9Event)))
26
27
28
+DEFAULT_URL = "https://leakix.net"
29
class Client:
30
MAX_RESULTS_PER_PAGE = 20
31
32
def __init__(
33
self,
34
api_key: Optional[str] = None,
- base_url: Optional[str] = "https://leakix.net",
35
+ base_url: Optional[str] = DEFAULT_URL,
36
):
37
self.api_key = api_key
- self.base_url = base_url
38
+ self.base_url = base_url if base_url else DEFAULT_URL
39
self.headers = {
40
"Accept": "application/json",
41
"User-agent": "leakix-client-python/%s" % __VERSION__,
0 commit comments