Subversion Repositories SmartDukaan

Rev

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

Rev 19112 Rev 19113
Line 177... Line 177...
177
        notificationCampaignsMap[campaign['_id']] = campaign
177
        notificationCampaignsMap[campaign['_id']] = campaign
178
        
178
        
179
def insertPushNotificationEntriesToSent():
179
def insertPushNotificationEntriesToSent():
180
    global userGcmRegIdMap
180
    global userGcmRegIdMap
181
    for userList in campaignUsersMap.values():
181
    for userList in campaignUsersMap.values():
-
 
182
        print GCM_REG_ID_SQL1%(str(tuple(userList)))
182
        cursor.execute(GCM_REG_ID_SQL1%(str(tuple(userList))))
183
        cursor.execute(GCM_REG_ID_SQL1%(str(tuple(userList))))
183
        result_data = cursor.fetchall()
184
        result_data = cursor.fetchall()
184
        
185
        
185
        if result_data and len(result_data)>0:
186
        if result_data and len(result_data)>0:
186
            for dataRec in result_data:
187
            for dataRec in result_data: