|
@@ -91,7 +91,7 @@ def process_query(url, cust, query):
|
|
|
print("Rank: " + str(n))
|
|
|
time_stamp = datetime.fromtimestamp(time.time())
|
|
|
time_stamp = time_stamp.strftime("%Y-%m-%d %H:%M:%S")
|
|
|
- db['general_log'].insert({"time_stamp": time_stamp, "query": query, "url": href, "content": txt, "client": cust})
|
|
|
+ db['general_log'].insert({"time_stamp": time_stamp, "query": query, "url": href, "content": txt, "client": cust, "ranking": str(n)})
|
|
|
duration = random.randint(40,60)
|
|
|
time.sleep(duration)
|
|
|
|