Subversion Repositories SmartDukaan

Rev

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

Rev 12498 Rev 12499
Line 369... Line 369...
369
    inventory_client = InventoryClient().get_client()
369
    inventory_client = InventoryClient().get_client()
370
    fbaAvailableInventorySnapshot = inventory_client.getAllAvailableAmazonFbaItemInventory()
370
    fbaAvailableInventorySnapshot = inventory_client.getAllAvailableAmazonFbaItemInventory()
371
    if runType=='FAVOURITE':
371
    if runType=='FAVOURITE':
372
        favourites = session.query(Amazonlisted.itemId).filter(or_(Amazonlisted.autoFavourite==True, Amazonlisted.manualFavourite==True)).all()
372
        favourites = session.query(Amazonlisted.itemId).filter(or_(Amazonlisted.autoFavourite==True, Amazonlisted.manualFavourite==True)).all()
373
    for fbaInventoryItem in fbaAvailableInventorySnapshot:
373
    for fbaInventoryItem in fbaAvailableInventorySnapshot:
374
        if fbaInventoryItem!=12248:
374
        if fbaInventoryItem.item_id!=12248:
375
            continue
375
            continue
376
        if runType=='FAVOURITE':
376
        if runType=='FAVOURITE':
377
            if not (fbaInventoryItem.item_id in favourites):
377
            if not (fbaInventoryItem.item_id in favourites):
378
                continue 
378
                continue 
379
        d_amazon_listed = Amazonlisted.get_by(itemId=fbaInventoryItem.item_id)
379
        d_amazon_listed = Amazonlisted.get_by(itemId=fbaInventoryItem.item_id)