mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-12 17:22:38 +02:00
chore: linting
This commit is contained in:
parent
786b65d68f
commit
7bd3a4e08f
6 changed files with 22 additions and 10 deletions
|
|
@ -107,8 +107,12 @@ def create_create_notion_page_tool(
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
decisions_raw = approval.get("decisions", []) if isinstance(approval, dict) else []
|
decisions_raw = (
|
||||||
decisions = decisions_raw if isinstance(decisions_raw, list) else [decisions_raw]
|
approval.get("decisions", []) if isinstance(approval, dict) else []
|
||||||
|
)
|
||||||
|
decisions = (
|
||||||
|
decisions_raw if isinstance(decisions_raw, list) else [decisions_raw]
|
||||||
|
)
|
||||||
decisions = [d for d in decisions if isinstance(d, dict)]
|
decisions = [d for d in decisions if isinstance(d, dict)]
|
||||||
if not decisions:
|
if not decisions:
|
||||||
logger.warning("No approval decision received")
|
logger.warning("No approval decision received")
|
||||||
|
|
|
||||||
|
|
@ -119,8 +119,12 @@ def create_delete_notion_page_tool(
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
decisions_raw = approval.get("decisions", []) if isinstance(approval, dict) else []
|
decisions_raw = (
|
||||||
decisions = decisions_raw if isinstance(decisions_raw, list) else [decisions_raw]
|
approval.get("decisions", []) if isinstance(approval, dict) else []
|
||||||
|
)
|
||||||
|
decisions = (
|
||||||
|
decisions_raw if isinstance(decisions_raw, list) else [decisions_raw]
|
||||||
|
)
|
||||||
decisions = [d for d in decisions if isinstance(d, dict)]
|
decisions = [d for d in decisions if isinstance(d, dict)]
|
||||||
if not decisions:
|
if not decisions:
|
||||||
logger.warning("No approval decision received")
|
logger.warning("No approval decision received")
|
||||||
|
|
|
||||||
|
|
@ -128,8 +128,12 @@ def create_update_notion_page_tool(
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
decisions_raw = approval.get("decisions", []) if isinstance(approval, dict) else []
|
decisions_raw = (
|
||||||
decisions = decisions_raw if isinstance(decisions_raw, list) else [decisions_raw]
|
approval.get("decisions", []) if isinstance(approval, dict) else []
|
||||||
|
)
|
||||||
|
decisions = (
|
||||||
|
decisions_raw if isinstance(decisions_raw, list) else [decisions_raw]
|
||||||
|
)
|
||||||
decisions = [d for d in decisions if isinstance(d, dict)]
|
decisions = [d for d in decisions if isinstance(d, dict)]
|
||||||
if not decisions:
|
if not decisions:
|
||||||
logger.warning("No approval decision received")
|
logger.warning("No approval decision received")
|
||||||
|
|
|
||||||
|
|
@ -189,7 +189,7 @@ async def lifespan(app: FastAPI):
|
||||||
# doesn't block startup indefinitely and make the container unresponsive)
|
# doesn't block startup indefinitely and make the container unresponsive)
|
||||||
try:
|
try:
|
||||||
await asyncio.wait_for(seed_surfsense_docs(), timeout=120)
|
await asyncio.wait_for(seed_surfsense_docs(), timeout=120)
|
||||||
except asyncio.TimeoutError:
|
except TimeoutError:
|
||||||
logging.getLogger(__name__).warning(
|
logging.getLogger(__name__).warning(
|
||||||
"Surfsense docs seeding timed out after 120s — skipping. "
|
"Surfsense docs seeding timed out after 120s — skipping. "
|
||||||
"Docs will be indexed on the next restart."
|
"Docs will be indexed on the next restart."
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,8 @@
|
||||||
import { useFeatureFlagVariantKey } from "@posthog/react";
|
import { useFeatureFlagVariantKey } from "@posthog/react";
|
||||||
import { AnimatePresence, motion } from "motion/react";
|
import { AnimatePresence, motion } from "motion/react";
|
||||||
import Link from "next/link";
|
import Link from "next/link";
|
||||||
import React, { useEffect, useRef, useState } from "react";
|
import type React from "react";
|
||||||
|
import { useEffect, useRef, useState } from "react";
|
||||||
import Balancer from "react-wrap-balancer";
|
import Balancer from "react-wrap-balancer";
|
||||||
import { WalkthroughScroll } from "@/components/ui/walkthrough-scroll";
|
import { WalkthroughScroll } from "@/components/ui/walkthrough-scroll";
|
||||||
import { AUTH_TYPE, BACKEND_URL } from "@/lib/env-config";
|
import { AUTH_TYPE, BACKEND_URL } from "@/lib/env-config";
|
||||||
|
|
|
||||||
|
|
@ -12,8 +12,7 @@ export const announcements: Announcement[] = [
|
||||||
{
|
{
|
||||||
id: "announcement-1",
|
id: "announcement-1",
|
||||||
title: "Introducing Announcements",
|
title: "Introducing Announcements",
|
||||||
description:
|
description: "All major announcements will be posted here.",
|
||||||
"All major announcements will be posted here.",
|
|
||||||
category: "feature",
|
category: "feature",
|
||||||
date: "2026-02-17T00:00:00Z",
|
date: "2026-02-17T00:00:00Z",
|
||||||
isImportant: true,
|
isImportant: true,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue