|
@@ -16,14 +16,13 @@ class R2R:
|
|
|
|
|
|
def __init__(self):
|
|
|
self.auth_enabled = tool_settings.R2R_USERNAME and tool_settings.R2R_PASSWORD
|
|
|
- self.client = None
|
|
|
- self.client_sync = None
|
|
|
+ self.client = R2RAsyncClient(tool_settings.R2R_BASE_URL)
|
|
|
+ self.client_sync = R2RClient(tool_settings.R2R_BASE_URL)
|
|
|
|
|
|
def init_sync(self):
|
|
|
if not self.auth_enabled:
|
|
|
return
|
|
|
# if not self.client_sync:
|
|
|
- self.client_sync = R2RClient(tool_settings.R2R_BASE_URL)
|
|
|
self.client_sync.users.login(
|
|
|
tool_settings.R2R_USERNAME, tool_settings.R2R_PASSWORD
|
|
|
)
|
|
@@ -39,7 +38,6 @@ class R2R:
|
|
|
if not self.auth_enabled:
|
|
|
return
|
|
|
# if not self.client:
|
|
|
- self.client = R2RAsyncClient(tool_settings.R2R_BASE_URL)
|
|
|
print(
|
|
|
"1111111111111111111111111111111122222vvdgdfdf" + tool_settings.R2R_USERNAME
|
|
|
)
|