Skip to content

Commit

Permalink
Merge pull request #23 from Copyleaks/features/1207019394509570/add-m…
Browse files Browse the repository at this point in the history
…issing-property-allow-same-domain

Features/1207019394509570/add missing property allow same domain
  • Loading branch information
AihamAR authored Sep 11, 2024
2 parents adb2fc3 + 11b6721 commit 1a267fd
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 1a267fd

Please sign in to comment.