Subversion Repositories SmartDukaan

Rev

Rev 16487 | Rev 16550 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 16487 Rev 16545
Line 1271... Line 1271...
1271
                'JSON was incorrect.')
1271
                'JSON was incorrect.')
1272
            
1272
            
1273
        result = Mongo.addDealPoints(result_json)
1273
        result = Mongo.addDealPoints(result_json)
1274
        resp.body = json.dumps(result, encoding='utf-8')
1274
        resp.body = json.dumps(result, encoding='utf-8')
1275
 
1275
 
-
 
1276
class AppAffiliates():
-
 
1277
    
-
 
1278
    def on_get(self, req, resp, retailerId, appId):
-
 
1279
        retailerId = int(retailerId)
-
 
1280
        appId = int(appId)
-
 
1281
        result = Mongo.generateRedirectUrl(retailerId, appId)
-
 
1282
        resp.body = result
-
 
1283
        
-
 
1284
 
1276
def main():
1285
def main():
1277
    #tagActivatedReatilers()
1286
    #tagActivatedReatilers()
1278
    a = RetailerDetail()
1287
    a = RetailerDetail()
1279
    retailer = a.getNotActiveRetailer()
1288
    retailer = a.getNotActiveRetailer()
1280
    otherContacts = [r for r, in session.query(RetailerContacts.mobile_number).filter_by(retailer_id=retailer.id).order_by(RetailerContacts.contact_type).all()]
1289
    otherContacts = [r for r, in session.query(RetailerContacts.mobile_number).filter_by(retailer_id=retailer.id).order_by(RetailerContacts.contact_type).all()]