Subversion Repositories SmartDukaan

Rev

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

Rev 15225 Rev 15249
Line 142... Line 142...
142
def fromTimeStamp(timestamp):
142
def fromTimeStamp(timestamp):
143
    return datetime.fromtimestamp(timestamp)
143
    return datetime.fromtimestamp(timestamp)
144
 
144
 
145
def getNlcPoints(item, minNlc, maxNlc, available_price):
145
def getNlcPoints(item, minNlc, maxNlc, available_price):
146
    if not(minNlc and maxNlc):
146
    if not(minNlc and maxNlc):
-
 
147
        print "Raising exception minNlc, maxNlc not found for %d"%(item.get('_id'))
147
        raise
148
        raise
148
    if item.get('status') == 2:
149
    if item.get('status') == 2:
149
        eolWeight = .60
150
        eolWeight = .60
150
    else:
151
    else:
151
        eolWeight = 1.0
152
        eolWeight = 1.0