Subversion Repositories SmartDukaan

Rev

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

Rev 19246 Rev 19369
Line 178... Line 178...
178
        campaignUsersMap[long(campaign['_id'])]=userids
178
        campaignUsersMap[long(campaign['_id'])]=userids
179
        notificationCampaignsMap[long(campaign['_id'])] = campaign
179
        notificationCampaignsMap[long(campaign['_id'])] = campaign
180
        
180
        
181
def insertPushNotificationEntriesToSent():
181
def insertPushNotificationEntriesToSent():
182
    global userGcmRegIdMap
182
    global userGcmRegIdMap
183
    for userList in campaignUsersMap.values():
183
    for campaignId, userList in campaignUsersMap.items():
-
 
184
        logging.debug("CampaignId:- "+str(campaignId))
-
 
185
        if len(userList)==0:
-
 
186
            continue
184
        logging.debug("GCM_REG_SQL_1:- "+GCM_REG_ID_SQL1%(",".join(map(str,userList))))
187
        logging.debug("GCM_REG_SQL_1:- "+GCM_REG_ID_SQL1%(",".join(map(str,userList))))
185
        cursor.execute(GCM_REG_ID_SQL1%(",".join(map(str,userList))))
188
        cursor.execute(GCM_REG_ID_SQL1%(",".join(map(str,userList))))
186
        result_data = cursor.fetchall()
189
        result_data = cursor.fetchall()
187
        
190
        
188
        if result_data and len(result_data)>0:
191
        if result_data and len(result_data)>0: