def print_dupe(): dupes = analyze.get_dupes() if not dupes: print("Sorry, dupe not found") else: print("Great! Dupe was found!") for dupe in dupes: print(dupe.to_msg(), end='\n\n')
def print_dupe(): dupes = analyze.get_dupes() if not dupes: print("Sorry, dupe not found") else: print("Great! Dupe was found!") for dupe in dupes: print( dupe.to_msg(), end='\n\n' )
def dupe(request): post_data = yield from request.post() ignore = post_data.get('ignore') or None if ignore is not None: ignore = json.loads(ignore) dupes, ignored = analyze.get_dupes(ignore_trades=ignore) result = [d.to_dict() for d in dupes] if post_data: result = {'dupes': result, 'ignored': ignored} body = json.dumps(result).encode() return web.Response(body=body)
__author__ = 'spumer' import market import analyze #market.get_trades(remote=True).write(latest=True) analyze.get_dupes()