Skip to content

Commit 11b6721

Browse files
committed
add allow same domain property
add allow same domain property
1 parent adb2fc3 commit 11b6721

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)