Skip to content

Commit

Permalink
add allow same domain property
Browse files Browse the repository at this point in the history
add allow same domain property
  • Loading branch information
Elazarcl committed Sep 10, 2024
1 parent adb2fc3 commit 11b6721
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions copyleaks/models/submit/properties/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,3 +146,20 @@ def set_domains_mode(self, value):
assert value in DomainsMode

self.domainsMode = value

def get_allow_same_domain(self):
'''
when set to true it will allow results from the same domain as the submitted url.
'''
return self.identicalEnabled

def set_allow_same_domain(self, value):
'''
when set to true it will allow results from the same domain as the submitted url.
Parameters:
value: Boolean.
'''
assert value is not None

self.allowSameDomain = value

0 comments on commit 11b6721

Please sign in to comment.