We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4938210 commit b4598ffCopy full SHA for b4598ff
aw_client/classes.py
@@ -69,6 +69,8 @@ def get_classes() -> List[Tuple[List[str], dict]]:
69
Get classes from server-side settings.
70
Might throw a 404 if not set yet, in which case we use the default classes as a fallback.
71
"""
72
+ # NOTE: Always tries to fetch from prod server,
73
+ # which is potentially wrong if testing server is being used.
74
awc = aw_client.ActivityWatchClient(f"get-setting-{random.randint(0, 10000)}")
75
try:
76
classes = awc.get_setting("classes")
0 commit comments