def METHOD_NAME(query: str):
    results = [
        {
            "id": app["app_id"],
            "name": app["name"],
            "summary": app["summary"],
            "icon": app.get("icon"),
        }
        for app in search.search_apps(query)["hits"]
        if "app_id"  # this might cause hit count to be wrong, but is better then crashing
        in app
    ]
    ret = []
    for app in results:
        compat_app = {
            "flatpakAppId": app.get("id"),
            "name": app.get("name"),
            "summary": app.get("summary"),
            "iconDesktopUrl": app.get("icon"),
            "iconMobileUrl": app.get("icon"),
            "currentReleaseVersion": None,
            "currentReleaseDate": None,
            "inStoreSinceDate": None,
        }
        ret.append(compat_app)
    return ret