Skip to content

Commit 83e8186

Browse files
committed
Fix member placing
1 parent 6fb69a7 commit 83e8186

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/common/core/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import enum
2+
3+
4+
class ReplicaReadStrategy(enum.StrEnum):
5+
DISTRIBUTED = enum.auto()
6+
SEQUENTIAL = enum.auto()

src/common/core/utils.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import enum
21
import json
32
import logging
43
import pathlib
@@ -14,6 +13,8 @@
1413
from django.db.models import Manager, Model
1514
from django.db.utils import OperationalError
1615

16+
from common.core import ReplicaReadStrategy
17+
1718
logger = logging.getLogger(__name__)
1819

1920
UNKNOWN = "unknown"
@@ -25,11 +26,6 @@
2526
_replica_sequential_names_by_prefix: dict[ReplicaNamePrefix, Iterator[str]] = {}
2627

2728

28-
class ReplicaReadStrategy(enum.StrEnum):
29-
DISTRIBUTED = enum.auto()
30-
SEQUENTIAL = enum.auto()
31-
32-
3329
class SelfHostedData(TypedDict):
3430
has_users: bool
3531
has_logins: bool

0 commit comments

Comments
 (0)