Compare commits
1 Commits
41cd6ea852
...
e4d6f0940d
Author | SHA1 | Date |
---|---|---|
|
e4d6f0940d |
|
@ -496,7 +496,7 @@ class Account(Struct):
|
||||||
|
|
||||||
_mktmap_table: dict[str, MktPair] | None = None,
|
_mktmap_table: dict[str, MktPair] | None = None,
|
||||||
|
|
||||||
only_require: list[str]|None = None,
|
only_require: list[str]|True = True,
|
||||||
# ^list of fqmes that are "required" to be processed from
|
# ^list of fqmes that are "required" to be processed from
|
||||||
# this ledger pass; we often don't care about others and
|
# this ledger pass; we often don't care about others and
|
||||||
# definitely shouldn't always error in such cases.
|
# definitely shouldn't always error in such cases.
|
||||||
|
@ -549,7 +549,14 @@ class Account(Struct):
|
||||||
if _mktmap_table is None:
|
if _mktmap_table is None:
|
||||||
raise
|
raise
|
||||||
|
|
||||||
required: bool = fqme in only_require
|
required: bool = (
|
||||||
|
only_require is True
|
||||||
|
or (
|
||||||
|
only_require is not True
|
||||||
|
and
|
||||||
|
fqme in only_require
|
||||||
|
)
|
||||||
|
)
|
||||||
# XXX: caller is allowed to provide a fallback
|
# XXX: caller is allowed to provide a fallback
|
||||||
# mktmap table for the case where a new position is
|
# mktmap table for the case where a new position is
|
||||||
# being added and the preloaded symcache didn't
|
# being added and the preloaded symcache didn't
|
||||||
|
|
Loading…
Reference in New Issue