From f16d662fc6083ff8696545bbf800fec32f56a66c Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Mon, 12 Apr 2021 19:00:21 +0300 Subject: [PATCH] bug fix --- Sources/pyOpenRPA/Orchestrator/ServerSettings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/pyOpenRPA/Orchestrator/ServerSettings.py b/Sources/pyOpenRPA/Orchestrator/ServerSettings.py index fd629a97..5a669b06 100644 --- a/Sources/pyOpenRPA/Orchestrator/ServerSettings.py +++ b/Sources/pyOpenRPA/Orchestrator/ServerSettings.py @@ -370,7 +370,7 @@ def pyOpenRPA_Agent_O2A(inRequest, inGSettings): lReturnActivityItemDict = None # If lInput['ActivityLastGUIDStr'] is '' > return 0 element for send in Agent if lInput['ActivityLastGUIDStr'] == "": - lReturnActivityItemDict = lActivityItem[0] + lReturnActivityItemDict = lThisAgentDict["ActivityList"][0] else: # go from the end - search element with GUIDStr lForTriggerGetNextItem = False @@ -381,7 +381,7 @@ def pyOpenRPA_Agent_O2A(inRequest, inGSettings): if lForActivityItemDict['GUIDStr'] == lInput['ActivityLastGUIDStr']: lForTriggerGetNextItem = True # CASE if GUID is not detected - return 0 element if lReturnActivityItemDict == None and lForTriggerGetNextItem == False: - lReturnActivityItemDict = lActivityItem[0] + lReturnActivityItemDict = lThisAgentDict["ActivityList"][0] # Send QUEUE ITEM if lReturnActivityItemDict is not None: lReturnActivityItemDict = copy.deepcopy(lReturnActivityItemDict)