From 7e46e166e616bcfea1ccdc31d5e7187f7bbce806 Mon Sep 17 00:00:00 2001 From: Collin Blakley Date: Mon, 4 Apr 2022 11:10:15 -0400 Subject: [PATCH] Partial revert of a6656ae - fix for OGM vertex generation --- pyorient/ogm/graph.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyorient/ogm/graph.py b/pyorient/ogm/graph.py index 19361c6..f55e61d 100644 --- a/pyorient/ogm/graph.py +++ b/pyorient/ogm/graph.py @@ -529,7 +529,7 @@ def drop_all(self, registry): self.drop_class(cls, ignore_instances=True) def create_vertex(self, vertex_cls, **kwargs): - result = self.client.command(self.create_vertex_command(vertex_cls, **kwargs))[0] + result = self.client.command(to_unicode(self.create_vertex_command(vertex_cls, **kwargs)))[0] props = result.oRecordData return vertex_cls.from_graph(self, result._rid, self.props_from_db[vertex_cls](props))