From 1e7512723c385228fd422e47c5f1dd170d1f8e2a Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Sun, 20 Feb 2022 20:01:20 +0300 Subject: [PATCH] fixes --- Sources/pyOpenRPA/Orchestrator/Managers/Git.py | 10 +++++----- Sources/pyOpenRPA/Orchestrator/__init__.py | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Sources/pyOpenRPA/Orchestrator/Managers/Git.py b/Sources/pyOpenRPA/Orchestrator/Managers/Git.py index 00b7d6b0..bf132b0c 100644 --- a/Sources/pyOpenRPA/Orchestrator/Managers/Git.py +++ b/Sources/pyOpenRPA/Orchestrator/Managers/Git.py @@ -1,5 +1,4 @@ from ast import ExceptHandler -from multiprocessing.dummy import Process import os from .. import __Orchestrator__ from . import Process @@ -97,7 +96,7 @@ class Git(): :param inBranchLocalStr: _description_ :type inBranchLocalStr: str - :param inBranchRemoteStr: _description_ + :param inBranchRemoteStr: example: origin/prd :type inBranchRemoteStr: str :return: _description_ :rtype: bool @@ -116,14 +115,15 @@ class Git(): :param inBranchLocalStr: _description_ :type inBranchLocalStr: str - :param inBranchRemoteStr: _description_ + :param inBranchRemoteStr: example: origin/prd :type inBranchRemoteStr: str :param inPreviousBranchRestoreBool: _description_, defaults to True :type inPreviousBranchRestoreBool: bool, optional :param inIntervalSecFloat: _description_, defaults to 60.0 :type inIntervalSecFloat: float, optional - """ - Orchestrator.OrchestratorScheduleGet().every(inIntervalSecFloat).seconds().do(self.BranchRevLastGet, inBranchLocalStr, inBranchRemoteStr, inPreviousBranchRestoreBool) + """ + #self.BranchRevLastGet(inBranchLocalStr, inBranchRemoteStr, inPreviousBranchRestoreBool) + Orchestrator.OrchestratorScheduleGet().every(inIntervalSecFloat).seconds.do(self.BranchRevLastGet, inBranchLocalStr, inBranchRemoteStr, inPreviousBranchRestoreBool) def BranchRevLastGet(self, inBranchLocalStr: str, inBranchRemoteStr: str, inPreviousBranchRestoreBool: bool = True): """Do some action to get the last revision diff --git a/Sources/pyOpenRPA/Orchestrator/__init__.py b/Sources/pyOpenRPA/Orchestrator/__init__.py index 897e7782..8a3500e4 100644 --- a/Sources/pyOpenRPA/Orchestrator/__init__.py +++ b/Sources/pyOpenRPA/Orchestrator/__init__.py @@ -5,5 +5,6 @@ The pyOpenRPA package (from UnicodeLabs) """ from .Web import Basic from .__Orchestrator__ import * +from . import Managers __all__ = [] __author__ = 'Ivan Maslov ' \ No newline at end of file