Skip to content

Commit

Permalink
修改模型
Browse files Browse the repository at this point in the history
  • Loading branch information
Cl0udG0d committed May 3, 2020
1 parent 9d452d9 commit 0d3a47d
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 13 deletions.
6 changes: 3 additions & 3 deletions ImportToRedis.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import redis

PASSWORD = "123456"
# PASSWORD = ""
HOST = "192.168.88.128"
# PASSWORD = "123456"
PASSWORD = ""
HOST = "127.0.0.1"
# HOST = ""

'''
Expand Down
Binary file added __pycache__/ImportToRedis.cpython-37.pyc
Binary file not shown.
Binary file modified __pycache__/core.cpython-37.pyc
Binary file not shown.
Binary file modified __pycache__/get_message.cpython-37.pyc
Binary file not shown.
Binary file modified __pycache__/models.cpython-37.pyc
Binary file not shown.
3 changes: 0 additions & 3 deletions get_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,5 @@ def FindIpAdd(ip):
# print(FindIpAdd('202.202.157.110'))
# SubDomainBurst('baidu.com')
# print(CScanConsole('202.202.157.110'))
<<<<<<< HEAD
# print(SenFileScan("www.baidu.com"))
=======
print(SenFileScan("www.baidu.com"))
>>>>>>> 3d9597ebd8053b715e06ac594f97a63ff9b8bdc8
8 changes: 1 addition & 7 deletions index.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@
from models import User, Log,BaseInfo
from exts import db
from decorators import login_required
<<<<<<< HEAD
import ImportToRedis
=======
from BaseMessage import GetBaseMessage
import json
from concurrent.futures import ThreadPoolExecutor
>>>>>>> 3d9597ebd8053b715e06ac594f97a63ff9b8bdc8

app = Flask(__name__)
app.config.from_object(config)
Expand Down Expand Up @@ -42,7 +39,7 @@ def testmysql():

@app.route('/user')
def user():
return render_template('uesr-center.html')
return render_template('user-center.html')

@app.route('/testnav')
def test_home():
Expand Down Expand Up @@ -167,10 +164,7 @@ def page_not_found(e):
def test500():
return render_template('500.html')

<<<<<<< HEAD

=======
>>>>>>> 3d9597ebd8053b715e06ac594f97a63ff9b8bdc8
@app.errorhandler(500)
def internal_server_error(e):
return render_template('500.html'), 500
Expand Down
4 changes: 4 additions & 0 deletions models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ class User(db.Model):
username=db.Column(db.String(50),nullable=False)
password=db.Column(db.String(100),nullable=False)

#boolcheck ->true 即 ip ->false 即 domain
class BaseInfo(db.Model):
__tablename__='baseinfo'
id=db.Column(db.Integer,primary_key=True,autoincrement=True)
deepinfoid=db.Column(db.Integer,nullable=True)
boolcheck=db.Column(db.Boolean,nullable=True)
url=db.Column(db.String(50),nullable=False)
status=db.Column(db.String(3),nullable=False)
title=db.Column(db.String(50),nullable=True)
Expand All @@ -24,6 +27,7 @@ class BaseInfo(db.Model):
senmessage = db.Column(db.Text,nullable=True)
sendir = db.Column(db.Text,nullable=True)


class IPInfo(db.Model):
__tablename__='ipinfo'
id=db.Column(db.Integer,primary_key=True,autoincrement=True)
Expand Down

0 comments on commit 0d3a47d

Please sign in to comment.