Subversion Repositories SmartDukaan

Rev

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

Rev 8282 Rev 8287
Line 1229... Line 1229...
1229
def get_amazon_fba_inventory(itemId):
1229
def get_amazon_fba_inventory(itemId):
1230
    row = AmazonFbaInventorySnapshot.get_by(item_id=itemId)
1230
    row = AmazonFbaInventorySnapshot.get_by(item_id=itemId)
1231
    return row.availability
1231
    return row.availability
1232
 
1232
 
1233
def get_all_non_zero_amazon_fba_inventory():
1233
def get_all_non_zero_amazon_fba_inventory():
1234
    return AmazonFbaInventorySnapshot.query.filter_by(AmazonFbaInventorySnapshot.availability!=0).all() 
-
 
1235
1234
    return AmazonFbaInventorySnapshot.query.filter(AmazonFbaInventorySnapshot.availability!=0).all() 
-
 
1235
1236
1236