mirror of
https://github.com/kemayo/leech
synced 2026-01-13 19:12:36 +01:00
Adds a more sensible default for options in the Site base class.
This commit is contained in:
parent
c702337040
commit
9b4d2a0998
1 changed files with 4 additions and 1 deletions
|
|
@ -62,7 +62,10 @@ class Site:
|
|||
"""
|
||||
session = attr.ib()
|
||||
footnotes = attr.ib(default=attr.Factory(list), init=False)
|
||||
options = attr.ib(default=attr.Factory(dict))
|
||||
options = attr.ib(default=attr.Factory(
|
||||
lambda site: site.get_default_options(),
|
||||
True
|
||||
))
|
||||
|
||||
@staticmethod
|
||||
def get_default_options():
|
||||
|
|
|
|||
Loading…
Reference in a new issue