mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-24 22:59:58 -07:00
global: snapshot
This commit is contained in:
@@ -20,8 +20,10 @@ def get_all_metrics(obj, path=""):
|
||||
metrics = []
|
||||
|
||||
for attr_name in dir(obj):
|
||||
# Skip dunder methods and internal attributes like _client
|
||||
if attr_name.startswith("__") or attr_name == "_client":
|
||||
# Skip dunder methods and internal attributes (_letter), but allow _digit (e.g., _10y, _2017)
|
||||
if attr_name.startswith("__"):
|
||||
continue
|
||||
if attr_name.startswith("_") and len(attr_name) > 1 and attr_name[1].isalpha():
|
||||
continue
|
||||
|
||||
try:
|
||||
Reference in New Issue
Block a user