Commit 3c371004 by lyh3024

fix

Change-Id: Ic148687eda7292a909e4079ca3e8ec0380cbdfef
parent 60d1bf7e
......@@ -11,6 +11,7 @@ def test(i):
t1 = datetime(year=2022, month=1, day=i)
l1 = Label(label_name="恶意域名" + str(i))
l2 = Label(label_name="境外域名" + str(i))
l1.save()
l2.save()
req1 = RequestIp(request_ip='127.0.0.1' + str(i), province='四川', isp='电信')
......@@ -31,7 +32,9 @@ def test(i):
r4 = d2.parse_domain.connect(do2, {"index": "126", "date": t1})
r5 = do1.label.connect(l1, {"index": "127", "date": t1})
r6 = do2.label.connect(l2, {"index": "128", "date": t1})
for r in [r1, r2, r3, r4, r5, r6]:
r8 = do1.label.connect(l2, {"index": "127", "date": t1})
r7 = req1.request_domain.connect(do2, {"index": "124", "date": t1})
for r in [r1, r2, r3, r4, r5, r6, r7, r8]:
r.save()
......@@ -99,8 +102,9 @@ def test4():
if __name__ == '__main__':
for i in range(1, 20):
test(i)
test2(i)
test3(i)
# for i in range(1, 20):
# test(i)
# test2(i)
# test3(i)
# test4()
test(22)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment