fixed issue with nod emobility location calculations being forced to use ints

This commit is contained in:
Blake Harnden 2019-11-27 09:05:37 -08:00
parent af9915191d
commit 8b7d651d06
3 changed files with 3 additions and 9 deletions

View file

@ -488,7 +488,7 @@ class CoreGrpcServer(core_pb2_grpc.CoreApiServicer):
:return: node event that contains node id, name, model, position, and services
:rtype: core.api.grpc.core_pb2.NodeEvent
"""
position = core_pb2.Position(x=event.x_position, y=event.y_position)
position = core_pb2.Position(x=int(event.x_position), y=int(event.y_position))
services = event.services or ""
services = services.split("|")
node_proto = core_pb2.Node(