From 056429d9f44f4cbc177d594cc4434688f89d6b17 Mon Sep 17 00:00:00 2001 From: Wilfred Tyler Gee Date: Wed, 8 May 2024 08:07:02 -1000 Subject: [PATCH] * Use `json.loads` instead of `from_json` so we don't create astropy objects. --- src/panoptes/pocs/utils/cli/network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/panoptes/pocs/utils/cli/network.py b/src/panoptes/pocs/utils/cli/network.py index dc38ba94e..ab60f190b 100644 --- a/src/panoptes/pocs/utils/cli/network.py +++ b/src/panoptes/pocs/utils/cli/network.py @@ -1,3 +1,4 @@ +import json import os import stat import time @@ -9,7 +10,6 @@ from google.cloud import firestore from google.cloud import storage from panoptes.utils.config.client import set_config, get_config -from panoptes.utils.serializers import from_json from rich import print from watchdog.events import FileSystemEventHandler from watchdog.observers import Observer @@ -111,7 +111,7 @@ def handleEvent(event): return try: - record = from_json(Path(event.src_path).read_text()) + record = json.loads(Path(event.src_path).read_text()) collection = record['type'] # Get the "current" record and collections refs.