Subversion Repositories SmartDukaan

Rev

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

Rev 23355 Rev 23358
Line 145... Line 145...
145
            try:
145
            try:
146
                catalogObj['imageUrl'] = get_mongo_connection(options.mongoHost).CONTENT.siteContent.find_one(filterMap, projection)['thumbnailImageUrl']
146
                catalogObj['imageUrl'] = get_mongo_connection(options.mongoHost).CONTENT.siteContent.find_one(filterMap, projection)['thumbnailImageUrl']
147
                print catalogObj['imageUrl']
147
                print catalogObj['imageUrl']
148
            except:
148
            except:
149
                try:
149
                try:
150
                    catalogObj['imageUrl'] = 'http://api.profittill.com/uploads/campaigns/' + item.catalog_item_id + '.jpg'
150
                    catalogObj['imageUrl'] = 'http://api.profittill.com/uploads/campaigns/' + str(item.catalog_item_id) + '.jpg'
151
                except:
151
                except:
152
                    traceback.print_exc()
152
                    traceback.print_exc()
153
                    continue
153
                    continue
154
            try: 
154
            try: 
155
                catalogObj['rank'] = tagRankingList.index(item.catalog_item_id)
155
                catalogObj['rank'] = tagRankingList.index(item.catalog_item_id)