Skip to content

Commit

Permalink
* Use json.loads instead of from_json so we don't create astropy …
Browse files Browse the repository at this point in the history
…objects.
  • Loading branch information
wtgee committed May 8, 2024
1 parent 59572a2 commit 056429d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/panoptes/pocs/utils/cli/network.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
import os
import stat
import time
Expand All @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 056429d

Please sign in to comment.