def check_transaction_by_id(self, key, value): q = ["-E", "meta", "%s=%s" % (key, Converter.clean_id(value))] try: next(self.run(q)) return True except StopIteration: return False
def check_transaction_by_id(self, key, value): cmd = ["reg", "tag:%s=%s" % (key, Converter.clean_id(value))] return self.run(cmd) != ''
def check_transaction_by_id(self, key, value): q = self.journal.query("-E meta %s=\"%s\"" % (key, Converter.clean_id(value))) return len(q) > 0
def check_transaction_by_id(self, key, value): return (self.get_transaction( ["-E", "meta", "%s=%s" % (key, Converter.clean_id(value))]) is not None)