Subversion Repositories SmartDukaan

Rev

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

Rev 19355 Rev 19362
Line 2241... Line 2241...
2241
    if len(max_id) ==0:
2241
    if len(max_id) ==0:
2242
        max_id = 0
2242
        max_id = 0
2243
    else:
2243
    else:
2244
        max_id = max_id[0]['_id']
2244
        max_id = max_id[0]['_id']
2245
    max_id = max_id +1
2245
    max_id = max_id +1
2246
    campaign = NotificationCampaign(max_id, campaignName, title, message, "SELECT User.id from users User where User.id="+str(userIds[0]), url, to_java_date(datetime.now()), to_java_date(datetime.now()+timedelta(year=500)), notificationtype, 'active', sendsms, smstext, 0, 0, 'BATCH_CREDIT')
2246
    campaign = NotificationCampaign(max_id, campaignName, title, message, "SELECT User.id from users User where User.id="+str(userIds[0]), url, to_java_date(datetime.now()), to_java_date(datetime.now()+timedelta(days=730)), notificationtype, 'active', sendsms, smstext, 0, 0, 'BATCH_CREDIT')
2247
    get_mongo_connection(host=mongoHost).User.notificationcampaigns.insert(campaign.__dict__)
2247
    get_mongo_connection(host=mongoHost).User.notificationcampaigns.insert(campaign.__dict__)
2248
 
2248
 
2249
def getDummyDeals(categoryId, offset, limit):
2249
def getDummyDeals(categoryId, offset, limit):
2250
    outer_query = []
2250
    outer_query = []
2251
    outer_query.append({"showDeal":1})
2251
    outer_query.append({"showDeal":1})