Skip to content

Commit 1a267fd

Browse files
authored
Merge pull request #23 from Copyleaks/features/1207019394509570/add-missing-property-allow-same-domain
Features/1207019394509570/add missing property allow same domain
2 parents adb2fc3 + 11b6721 commit 1a267fd

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

copyleaks/models/submit/properties/filters.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,3 +146,20 @@ def set_domains_mode(self, value):
146146
assert value in DomainsMode
147147

148148
self.domainsMode = value
149+
150+
def get_allow_same_domain(self):
151+
'''
152+
when set to true it will allow results from the same domain as the submitted url.
153+
'''
154+
return self.identicalEnabled
155+
156+
def set_allow_same_domain(self, value):
157+
'''
158+
when set to true it will allow results from the same domain as the submitted url.
159+
160+
Parameters:
161+
value: Boolean.
162+
'''
163+
assert value is not None
164+
165+
self.allowSameDomain = value

0 commit comments

Comments
 (0)