Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Valeria Kerol committed Sep 6, 2024
1 parent 1bc6d80 commit 7665719
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/epstats/server/req.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def check_trigger(self):
if not self.goal:
raise ValueError("Goal is required for scope 'trigger'")
else:
if not (self.dimension or self.value):
if not (self.dimension and self.value):
raise ValueError("Dimension and value are required for this scope")
return self

Expand Down
2 changes: 1 addition & 1 deletion src/epstats/toolkit/experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def __post_init__(self):
if not self.goal:
raise ValueError("Trigger scope requires goal")
else:
if not (self.dimension or self.value):
if not (self.dimension and self.value):
raise ValueError("Dimension and value are required for this scope")


Expand Down

0 comments on commit 7665719

Please sign in to comment.