Skip to content

Commit

Permalink
changed the formatted json in baseapimanager to dict obj
Browse files Browse the repository at this point in the history
  • Loading branch information
caldera authored and caldera committed Jun 25, 2023
1 parent 7d1fe03 commit 5f0223b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/api/v2/managers/base_api_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ def find_object(self, ram_key: str, search: dict = None):
# key=lambda x: 0 if x[sort] == self._data_svc.get_config(f"objects.{ram_key}.default") else 1)
# return sorted_objs

# The following is a test function to see if I can get the neo4j database to work
def find_and_dump_objects(self, ram_key: str, search: dict = None, sort: str = None, include: List[str] = None,
exclude: List[str] = None):
try:
Expand Down Expand Up @@ -181,6 +182,7 @@ def find_and_dump_objects(self, ram_key: str, search: dict = None, sort: str = N
finally:
if session is not None:
session.close()
# End of test function

@staticmethod
def dump_object_with_filters(obj: Any, include: List[str] = None, exclude: List[str] = None) -> dict:
Expand Down

0 comments on commit 5f0223b

Please sign in to comment.