Remove key and secret

This commit is contained in:
Subash-Mohan 2025-03-11 11:48:05 +05:30
parent b339d3f46b
commit ee1675a53c

View File

@ -5,11 +5,8 @@ from typing import Any
from typing import Dict from typing import Dict
from typing import List from typing import List
from onyx.background.celery.versioned_apps.primary import app as primary_app
from onyx.configs.app_configs import INDEX_BATCH_SIZE from onyx.configs.app_configs import INDEX_BATCH_SIZE
from onyx.configs.constants import DocumentSource from onyx.configs.constants import DocumentSource
from onyx.configs.constants import OnyxCeleryPriority
from onyx.configs.constants import OnyxCeleryTask
from onyx.connectors.highspot.client import HighspotClient from onyx.connectors.highspot.client import HighspotClient
from onyx.connectors.highspot.client import HighspotClientError from onyx.connectors.highspot.client import HighspotClientError
from onyx.connectors.highspot.utils import scrape_url_content from onyx.connectors.highspot.utils import scrape_url_content
@ -404,17 +401,9 @@ class HighspotConnector(LoadConnector, PollConnector, SlimConnector):
if __name__ == "__main__": if __name__ == "__main__":
# spot_names = [] spot_names = []
# connector = HighspotConnector(spot_names) connector = HighspotConnector(spot_names)
# credentials = { credentials = {"highspot_key": "", "highspot_secret": ""}
# "highspot_key": "aa11f5e9e541f1641aa5", connector.load_credentials(credentials=credentials)
# "highspot_secret": "65d9a6e7e5bd66a4540faaa787027d207ee7a7126d3078d92d1b7185c0289ee6" for doc in connector.load_from_state():
# } print(doc)
# connector.load_credentials(credentials=credentials)
# for doc in connector.load_from_state():
# print(doc)
primary_app.send_task(
OnyxCeleryTask.CHECK_FOR_INDEXING,
priority=OnyxCeleryPriority.HIGH,
)