debug
This commit is contained in:
parent
0e75bdd220
commit
f06b9b5ec2
1 changed files with 2 additions and 2 deletions
|
|
@ -17,7 +17,7 @@ app = Flask(__name__)
|
|||
|
||||
@app.route("/track", methods = ['GET'])
|
||||
def track():
|
||||
if request.method == 'GET' and request.args.get('hash'):
|
||||
if request.method == 'GET' and request.args.get('hash') and request.args.get('cat'):
|
||||
|
||||
hash = str(request.args.get('hash'))
|
||||
cat = str(request.args.get('cat'))
|
||||
|
|
@ -30,7 +30,7 @@ def track():
|
|||
else:
|
||||
db = {}
|
||||
if hash in db.keys():
|
||||
visits = db[hash]['visits']
|
||||
visits = db[hash][cat]
|
||||
else:
|
||||
visits = list()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue