Skip to content

Commit b4598ff

Browse files
committed
fix: added comment about categories always fetched from prod to get_classes()
1 parent 4938210 commit b4598ff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

aw_client/classes.py

+2
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def get_classes() -> List[Tuple[List[str], dict]]:
6969
Get classes from server-side settings.
7070
Might throw a 404 if not set yet, in which case we use the default classes as a fallback.
7171
"""
72+
# NOTE: Always tries to fetch from prod server,
73+
# which is potentially wrong if testing server is being used.
7274
awc = aw_client.ActivityWatchClient(f"get-setting-{random.randint(0, 10000)}")
7375
try:
7476
classes = awc.get_setting("classes")

0 commit comments

Comments
 (0)