if args and args.get('workspace_id'):
        s = s.where(Application.workspace_id == args.get('workspace_id'))