Commit 0f76478e authored by 张彦钊's avatar 张彦钊

change test file

parent ac9eb72a
...@@ -241,7 +241,7 @@ def ip_black(x): ...@@ -241,7 +241,7 @@ def ip_black(x):
password="BJQaT9VzDcuPBqkd", password="BJQaT9VzDcuPBqkd",
db="zhengxing", db="zhengxing",
cursorclass=pymysql.cursors.DictCursor) cursorclass=pymysql.cursors.DictCursor)
cursor = db_eagle.cursor() cursor = db_zhengxing.cursor()
date_str = str(datetime.datetime.now()) date_str = str(datetime.datetime.now())
sql = "REPLACE INTO hippo_ipblacklist(ip,create_at,update_at,pull_black_type)" \ sql = "REPLACE INTO hippo_ipblacklist(ip,create_at,update_at,pull_black_type)" \
"values('{}','{}','{}',{})".format(x, date_str, date_str, 1) "values('{}','{}','{}',{})".format(x, date_str, date_str, 1)
...@@ -250,7 +250,6 @@ def ip_black(x): ...@@ -250,7 +250,6 @@ def ip_black(x):
db_zhengxing.close() db_zhengxing.close()
if __name__ == "__main__": if __name__ == "__main__":
black("hello")
ip_black("hello") ip_black("hello")
......
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