devicehub-django/evidence/old_parse_details.py

14 lines
294 B
Python
Raw Normal View History

2025-01-11 19:44:21 +00:00
import logging
logger = logging.getLogger('django')
class ParseSnapshot:
def __init__(self, snapshot, default="n/a"):
self.default = default
self.snapshot_json = snapshot
self.device = snapshot.get("device")
self.components = snapshot.get("components")