移除无用包
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
/PriceSystem/config/__pycache__
|
||||
/PriceSystem/PriceSystem/.idea
|
||||
*/__pycache__
|
||||
.idea
|
||||
/PriceSystem/fangjia/__pycache__
|
||||
/PriceSystem/sell_price/__pycache__
|
||||
/PriceSystem/zhuge/__pycache__
|
||||
|
||||
@@ -2,9 +2,10 @@ import json
|
||||
import multiprocessing
|
||||
import time
|
||||
import redis
|
||||
import config
|
||||
|
||||
QUEUE = "calc_cmd"
|
||||
redis_pool = redis.ConnectionPool(host='192.168.0.144', port=6379, db=0)
|
||||
redis_pool = redis.ConnectionPool(host=config.get_redis_host(), port=6379, db=0)
|
||||
|
||||
|
||||
def monitor(pname):
|
||||
@@ -12,7 +13,7 @@ def monitor(pname):
|
||||
while True:
|
||||
pre_counter = client.llen(QUEUE)
|
||||
time.sleep(60)
|
||||
print(pname + "#####################################:".zfill(100) + str(
|
||||
print(pname + "##################:".zfill(20) + str(
|
||||
pre_counter - client.llen(QUEUE)) + "/min")
|
||||
|
||||
|
||||
|
||||
@@ -33,3 +33,7 @@ def get_log_mongodb_port():
|
||||
|
||||
def get_timeout():
|
||||
return 0.3
|
||||
|
||||
|
||||
def get_seawater_host():
|
||||
return "seawater.db.fangjia.com"
|
||||
|
||||
@@ -66,7 +66,7 @@ def get_seawater_index_name(city, region):
|
||||
@timer
|
||||
def findHouse(query, fields=None):
|
||||
# s = time.time()
|
||||
seawater105 = get_collection("fangjia", "seawater", "192.168.0.105", 27777)
|
||||
seawater105 = get_collection("fangjia", "seawater", config.get_seawater_host(), 27777)
|
||||
for err_count in range(0, 10):
|
||||
|
||||
try:
|
||||
@@ -135,7 +135,7 @@ def find_house_from_elastic_search(city, region, alias, roots=None, pdate=None,
|
||||
@timer
|
||||
def find_sample_pool(query, fields=None):
|
||||
# s = time.time()
|
||||
seawater105 = get_collection("fangjia", "seawater", "192.168.0.105 ", 27777)
|
||||
seawater105 = get_collection("fangjia", "seawater", config.get_seawater_host(), 27777)
|
||||
for err_count in range(0, 10):
|
||||
|
||||
try:
|
||||
|
||||
+8
-7
@@ -1,12 +1,13 @@
|
||||
import zhuge0118A
|
||||
import time
|
||||
import datetime
|
||||
|
||||
s = time.time()
|
||||
ct='上海'
|
||||
rl='奉贤'
|
||||
lk='杨王村公寓'
|
||||
ct = '上海'
|
||||
rl = '奉贤'
|
||||
lk = '杨王村公寓'
|
||||
weekend = datetime.datetime.strptime("2018-03-11", "%Y-%m-%d")
|
||||
|
||||
|
||||
zhuge0118A.out_put_price(ct, rl, lk)
|
||||
zhuge0118A.out_put_price(ct, rl, lk)
|
||||
zhuge0118A.out_put_price(ct, rl, lk, weekend)
|
||||
e = time.time()
|
||||
print(e -s)
|
||||
print(e - s)
|
||||
|
||||
+939
-1034
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user