Skip to content

Commit bbde862

Browse files
committed
Check for proper trade values
1 parent 57efcea commit bbde862

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

omnidex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def getOrderbook(lasttrade=0, lastpending=0):
2626
if len(pending) > 0 and len(pending[0]) > 0:
2727
pending=int(pending[0][0])
2828

29-
if (trade > lasttrade or pending < lastpending):
29+
if (trade > int(lasttrade) or pending < int(lastpending)):
3030
AO=dbSelect("select distinct propertyiddesired, propertyidselling from activeoffers "
3131
"where offerstate='active' order by propertyiddesired")
3232
if len(AO) > 0:

0 commit comments

Comments
 (0)