Subversion Repositories SmartDukaan

Rev

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

Rev 15632 Rev 15633
Line 167... Line 167...
167
            for status in [AFF_STATUS_PENDING, AFF_STATUS_CANCELLED, AFF_STATUS_DISAPPROVED]:
167
            for status in [AFF_STATUS_PENDING, AFF_STATUS_CANCELLED, AFF_STATUS_DISAPPROVED]:
168
                hasPagination=True
168
                hasPagination=True
169
                pagination = 0
169
                pagination = 0
170
                while hasPagination:
170
                while hasPagination:
171
                    pagination = pagination + 1
171
                    pagination = pagination + 1
-
 
172
                    print "pagination", pagination
172
                    try:
173
                    try:
173
                        br.open(AFF_REPORT_URL % (status, syester5date, syester5date, pagination))
174
                        br.open(AFF_REPORT_URL % (status, syester5date, syester5date, pagination))
174
                    except:
175
                    except:
175
                        tprint("Could not fetch data for Status %s and date %s"%(status, syester5date))
176
                        tprint("Could not fetch data for Status %s and date %s"%(status, syester5date))
176
                    page = ungzipResponse(br.response())
177
                    page = ungzipResponse(br.response())