def get_last_pushed_str(self, package_id): result = query.isPushed(package_id) if result is None: return None try: return result.strftime("%Y-%m-%d %H:%M") except: return result
def pushed_to_search(self, package_id): result = query.isPushed(package_id) if result is None: return False return True