Subversion Repositories SmartDukaan

Rev

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

Rev 10450 Rev 10485
Line 1386... Line 1386...
1386
       
1386
       
1387
def get_flipkart_inventory_snapshot():
1387
def get_flipkart_inventory_snapshot():
1388
    return FlipkartInventorySnapshot.query.all()     
1388
    return FlipkartInventorySnapshot.query.all()     
1389
        
1389
        
1390
def get_flipkart_inventory_for_Item(itemId):
1390
def get_flipkart_inventory_for_Item(itemId):
1391
    return FlipkartInventorySnapshot.get_by(item_id = itemId)
-
 
1392
1391
    return FlipkartInventorySnapshot.get_by(item_id = itemId)
-
 
1392
 
-
 
1393
def get_state_master():
-
 
1394
    stateIdNameMap = {} 
-
 
1395
    statemaster = StateMaster.query.all()
-
 
1396
    for state in statemaster:
-
 
1397
        stateIdNameMap[state.id] = state.name
-
 
1398
    return stateIdNameMap    
-
 
1399
1393
1400