def METHOD_NAME(domain, build_id):
    app = None
    try:
        app = get_app(domain, build_id)
    except Http404:
        pass
    if app and not app.has_submissions:
        app.has_submissions = True
        app.save()