| Line 1975... |
Line 1975... |
| 1975 |
getAccsSchemeCashback(project_id)
|
1975 |
getAccsSchemeCashback(project_id)
|
| 1976 |
|
1976 |
|
| 1977 |
def getAccsSchemeCashback(project_id):
|
1977 |
def getAccsSchemeCashback(project_id):
|
| 1978 |
userMasterMap={}
|
1978 |
userMasterMap={}
|
| 1979 |
skipUserList=[]
|
1979 |
skipUserList=[]
|
| 1980 |
query = "select id from users where lower(referrer) in ('emp01','fos01','emp99','emp88')"
|
1980 |
query = "select id from users where lower(referrer) in ('emp01','emp99','emp88')"
|
| 1981 |
skipUsersresult = fetchResult(query)
|
1981 |
skipUsersresult = fetchResult(query)
|
| 1982 |
for skipUser in skipUsersresult:
|
1982 |
for skipUser in skipUsersresult:
|
| 1983 |
skipUserList.append(skipUser[0])
|
1983 |
skipUserList.append(skipUser[0])
|
| 1984 |
queryFilter = {"user_id":{"$nin":skipUserList}}
|
1984 |
queryFilter = {"user_id":{"$nin":skipUserList}}
|
| 1985 |
result = get_mongo_connection().Catalog.PromoOffer.find(queryFilter)
|
1985 |
result = get_mongo_connection().Catalog.PromoOffer.find(queryFilter)
|
| Line 2359... |
Line 2359... |
| 2359 |
category_id = req.get_param_as_int('category_id')
|
2359 |
category_id = req.get_param_as_int('category_id')
|
| 2360 |
id_list = req.get_param('id_list')
|
2360 |
id_list = req.get_param('id_list')
|
| 2361 |
type = req.get_param('type')
|
2361 |
type = req.get_param('type')
|
| 2362 |
result = Mongo.getBrandSubCategoryInfo(category_id, id_list, type)
|
2362 |
result = Mongo.getBrandSubCategoryInfo(category_id, id_list, type)
|
| 2363 |
resp.body = dumps(result)
|
2363 |
resp.body = dumps(result)
|
| 2364 |
|
2364 |
|
| 2365 |
def main():
|
2365 |
def main():
|
| 2366 |
a = RetailerDetail()
|
2366 |
a = RetailerDetail()
|
| 2367 |
retailer = a.getNotActiveRetailer()
|
2367 |
retailer = a.getNotActiveRetailer()
|
| 2368 |
otherContacts = [r for r, in session.query(RetailerContacts.mobile_number).filter_by(retailer_id=retailer.id).order_by(RetailerContacts.contact_type).all()]
|
2368 |
otherContacts = [r for r, in session.query(RetailerContacts.mobile_number).filter_by(retailer_id=retailer.id).order_by(RetailerContacts.contact_type).all()]
|
| 2369 |
print json.dumps(todict(getRetailerObj(retailer, otherContacts, 'fresh')), encoding='utf-8')
|
2369 |
print json.dumps(todict(getRetailerObj(retailer, otherContacts, 'fresh')), encoding='utf-8')
|