Skip to content

Commit

Permalink
bit of a strange bug with inventory
Browse files Browse the repository at this point in the history
  • Loading branch information
duboyal committed Apr 2, 2024
1 parent f145b97 commit cfc7e64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 8 additions & 5 deletions src/cript/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,11 +457,14 @@ def save(self, new_node: PrimaryBaseNode) -> None:
# Do the POST request call. only on project
# or else its a patch handled by previous node

# if new_node.node_type == "project"
data = new_node.get_json().json
response = self._capsule_request(url_path="/project/", method="POST", data=data)
print("----700----")
print(response.json)
print("--------900---------")
print(new_node.node_type.lower())
if new_node.node_type.lower() == "project":
data = new_node.get_json().json
response = self._capsule_request(url_path="/project/", method="POST", data=data)
print("----700----")
print(response.json())

return # Return here, since we are done after Posting

# This is where a patch is needed (we do it below)
Expand Down
1 change: 0 additions & 1 deletion tests/nodes/primary_nodes/test_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import pytest

import cript
from cript.nodes.util import load_nodes_from_json
from tests.utils.integration_test_helper import (
delete_integration_node_helper,
save_integration_node_helper,
Expand Down

0 comments on commit cfc7e64

Please sign in to comment.