Skip to content

Commit

Permalink
Use connect_instance_new for Koncopd, sunnyosun and falexwolf for tes…
Browse files Browse the repository at this point in the history
…ting
  • Loading branch information
Koncopd committed Sep 11, 2024
1 parent e104ca0 commit ee08b25
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lamindb_setup/_connect_instance.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
from ._migrate import check_whether_migrations_in_sync
from ._silence_loggers import silence_loggers
from .core._hub_core import connect_instance as load_instance_from_hub
from .core._hub_core import connect_instance_new as load_instance_from_hub_edge
from .core._hub_utils import (
LaminDsn,
LaminDsnModel,
Expand Down Expand Up @@ -126,7 +127,10 @@ def _connect_instance(
# on the hub
# do not call hub if the user is anonymous
if owner != "anonymous":
hub_result = load_instance_from_hub(owner=owner, name=name)
if settings.user.handle in {"Koncopd", "sunnyosun", "falexwolf"}:
hub_result = load_instance_from_hub_edge(owner=owner, name=name)
else:
hub_result = load_instance_from_hub(owner=owner, name=name)
else:
hub_result = "anonymous-user"
# if hub_result is not a string, it means it made a request
Expand Down

0 comments on commit ee08b25

Please sign in to comment.