From d552ce7be24aa530303653050a8ed86476bb37e7 Mon Sep 17 00:00:00 2001 From: Tlams Date: Tue, 20 Mar 2018 19:26:46 +0000 Subject: [PATCH] Change id form --- code/scripts/main/api/v1/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/scripts/main/api/v1/api.py b/code/scripts/main/api/v1/api.py index d5a42c5..a9f7bb4 100644 --- a/code/scripts/main/api/v1/api.py +++ b/code/scripts/main/api/v1/api.py @@ -164,8 +164,8 @@ class Instance: for nodeid, count in sorted_nodes.items(): """ GENERATE UNIQ COMMAND ID """ randtext = ''.join(random.choice('AZERTYUIOPQSDFGHJKLMWXCVBN') for i in range(8)) - command_id = "Please, do not change or delete this ID \n" \ - "id={0}_{1}".format(time.time(), randtext) + command_id = "-- Please, do not change or delete this ID -- \n" \ + "id=\"{0}_{1}\"\n------------------\n".format(time.time(), randtext) """ Find information by id mongodb""" realnode = core.generalsearch('{ "_id": {id} }'.format(id=nodeid))