Skip to content

Commit

Permalink
fix: added comment about categories always fetched from prod to get_c…
Browse files Browse the repository at this point in the history
…lasses()
  • Loading branch information
ErikBjare committed Nov 22, 2023
1 parent 4938210 commit b4598ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aw_client/classes.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def get_classes() -> List[Tuple[List[str], dict]]:
Get classes from server-side settings.
Might throw a 404 if not set yet, in which case we use the default classes as a fallback.
"""
# NOTE: Always tries to fetch from prod server,
# which is potentially wrong if testing server is being used.
awc = aw_client.ActivityWatchClient(f"get-setting-{random.randint(0, 10000)}")
try:
classes = awc.get_setting("classes")
Expand Down

0 comments on commit b4598ff

Please sign in to comment.