Skip to content

Commit

Permalink
[Tentacles] replace static by tentacles url
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeDSM committed Dec 19, 2023
1 parent 1961bc6 commit 1bf4d9d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 18 deletions.
4 changes: 0 additions & 4 deletions octobot/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ def call_tentacles_manager(command_args):
octobot_logger.init_logger()
tentacles_urls = [
configuration_manager.get_default_tentacles_url(),
# tentacles_manager_api.get_compiled_tentacles_url(
# constants.DEFAULT_COMPILED_TENTACLES_URL,
# constants.TENTACLES_REQUIRED_VERSION
# )
]
sys.exit(tentacles_manager_cli.handle_tentacles_manager_command(command_args,
tentacles_urls=tentacles_urls,
Expand Down
15 changes: 2 additions & 13 deletions octobot/configuration_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ def get_default_tentacles_url(version=None):
if constants.TENTACLES_REQUIRED_VERSION else constants.LONG_VERSION
return os.getenv(
constants.ENV_TENTACLES_URL,
f"{constants.STATIC_OCTOBOT_ONLINE}/"
f"{tentacles_repository}/"
f"https://{tentacles_repository}."
f"{constants.OCTOBOT_ONLINE}/"
f"{os.getenv(constants.ENV_TENTACLES_PACKAGES_SOURCE, constants.OFFICIALS)}/"
f"{os.getenv(constants.ENV_TENTACLES_PACKAGES_TYPE, constants.TENTACLE_PACKAGES)}/"
f"{os.getenv(constants.ENV_TENTACLE_CATEGORY, constants.TENTACLE_CATEGORY)}/"
Expand All @@ -165,17 +165,6 @@ def get_default_tentacles_url(version=None):
)


def get_default_compiled_tentacles_url():
return os.getenv(
constants.ENV_COMPILED_TENTACLES_URL,
f"{constants.STATIC_OCTOBOT_ONLINE}/{constants.TENTACLES_REPOSITORY}/"
f"{os.getenv(constants.ENV_TENTACLES_PACKAGES_SOURCE, constants.OFFICIALS)}/"
f"{os.getenv(constants.ENV_COMPILED_TENTACLES_PACKAGES_TYPE, constants.TENTACLE_PACKAGES)}/"
f"{os.getenv(constants.ENV_COMPILED_TENTACLES_CATEGORY, constants.COMPILED_TENTACLE_CATEGORY)}/"
f"{os.getenv(constants.ENV_COMPILED_TENTACLES_SUBCATEGORY, '')}"
)


def get_user_local_config_file():
try:
import octobot_commons.constants as commons_constants
Expand Down
2 changes: 1 addition & 1 deletion octobot/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
OCTOBOT_DOCS_URL = os.getenv("DOCS_OCTOBOT_ONLINE_URL", "https://www.octobot.cloud/guides")
EXCHANGES_DOCS_URL = os.getenv("DOCS_OCTOBOT_ONLINE_URL", "https://www.octobot.cloud/guides/exchanges/")
DEVELOPER_DOCS_URL = os.getenv("DOCS_OCTOBOT_ONLINE_URL", "https://www.octobot.cloud/guides/developers/")
STATIC_OCTOBOT_ONLINE = os.getenv("TENTACLES_OCTOBOT_ONLINE_URL", "https://static.octobot.online")
OCTOBOT_ONLINE = os.getenv("TENTACLES_OCTOBOT_ONLINE_URL", "octobot.online")
OCTOBOT_FEEDBACK = os.getenv("FEEDBACK_OCTOBOT_ONLINE_URL", "https://feedback.octobot.cloud/")
TENTACLES_REPOSITORY = "tentacles"
BETA_TENTACLES_REPOSITORY = "dev-tentacles"
Expand Down

0 comments on commit 1bf4d9d

Please sign in to comment.