Subversion Repositories SmartDukaan

Rev

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

Rev 11630 Rev 11635
Line 2691... Line 2691...
2691
        return True
2691
        return True
2692
    except Exception as e:
2692
    except Exception as e:
2693
        print 'Exception in updating private deals'
2693
        print 'Exception in updating private deals'
2694
        print e
2694
        print e
2695
        return False
2695
        return False
-
 
2696
    
-
 
2697
    
-
 
2698
def get_private_deals_catalog_ids(offset,limit):
-
 
2699
    print session.query(Item).join((PrivateDeals,Item.id==PrivateDeals.item_id)).filter(PrivateDeals.isActive==True).group_by(Item.catalog_item_id).offset(offset).limit(limit).all()
-
 
2700
    private_deal_items = session.query(Item).join((PrivateDeals,Item.id==PrivateDeals.item_id)).filter(PrivateDeals.isActive==True).group_by(Item.catalog_item_id).offset(offset).limit(limit).all()
-
 
2701
    if private_deal_items is None:
-
 
2702
        return None
-
 
2703
    else:
-
 
2704
        return [item.catalog_item_id for item in private_deal_items]
2696
2705