mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-15 18:25:18 +02:00
Merge pull request #410 from MODSetter/dev
feat: bumped version to v0.0.8
This commit is contained in:
commit
f9d5a9fbc0
8 changed files with 2552 additions and 2548 deletions
|
|
@ -70,4 +70,3 @@ def downgrade() -> None:
|
||||||
This is intentionally left as a no-op for safety.
|
This is intentionally left as a no-op for safety.
|
||||||
"""
|
"""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -680,7 +680,9 @@ class ConnectorService:
|
||||||
"sources": [],
|
"sources": [],
|
||||||
}, []
|
}, []
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
print(f"ERROR: Unexpected error calling Baidu API: {type(exc).__name__}: {exc!r}")
|
print(
|
||||||
|
f"ERROR: Unexpected error calling Baidu API: {type(exc).__name__}: {exc!r}"
|
||||||
|
)
|
||||||
print(f"Endpoint: {baidu_endpoint}")
|
print(f"Endpoint: {baidu_endpoint}")
|
||||||
print(f"Payload: {payload}")
|
print(f"Payload: {payload}")
|
||||||
return {
|
return {
|
||||||
|
|
@ -707,7 +709,9 @@ class ConnectorService:
|
||||||
baidu_references = data.get("references", [])
|
baidu_references = data.get("references", [])
|
||||||
|
|
||||||
if "code" in data or "message" in data:
|
if "code" in data or "message" in data:
|
||||||
print(f"WARNING: Baidu API returned error - Code: {data.get('code')}, Message: {data.get('message')}")
|
print(
|
||||||
|
f"WARNING: Baidu API returned error - Code: {data.get('code')}, Message: {data.get('message')}"
|
||||||
|
)
|
||||||
|
|
||||||
if not baidu_references:
|
if not baidu_references:
|
||||||
print("WARNING: No references found in Baidu API response")
|
print("WARNING: No references found in Baidu API response")
|
||||||
|
|
@ -735,7 +739,9 @@ class ConnectorService:
|
||||||
source = {
|
source = {
|
||||||
"id": self.source_id_counter,
|
"id": self.source_id_counter,
|
||||||
"title": title,
|
"title": title,
|
||||||
"description": content[:300] if content else "", # Limit description length
|
"description": content[:300]
|
||||||
|
if content
|
||||||
|
else "", # Limit description length
|
||||||
"url": url,
|
"url": url,
|
||||||
}
|
}
|
||||||
sources_list.append(source)
|
sources_list.append(source)
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
Elasticsearch indexer for SurfSense
|
Elasticsearch indexer for SurfSense
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import hashlib
|
|
||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
from datetime import UTC, datetime
|
from datetime import UTC, datetime
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[project]
|
[project]
|
||||||
name = "surf-new-backend"
|
name = "surf-new-backend"
|
||||||
version = "0.0.7"
|
version = "0.0.8"
|
||||||
description = "SurfSense Backend"
|
description = "SurfSense Backend"
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
requires-python = ">=3.12"
|
requires-python = ">=3.12"
|
||||||
|
|
|
||||||
5066
surfsense_backend/uv.lock
generated
5066
surfsense_backend/uv.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "surfsense_browser_extension",
|
"name": "surfsense_browser_extension",
|
||||||
"displayName": "Surfsense Browser Extension",
|
"displayName": "Surfsense Browser Extension",
|
||||||
"version": "0.0.7",
|
"version": "0.0.8",
|
||||||
"description": "Extension to collect Browsing History for SurfSense.",
|
"description": "Extension to collect Browsing History for SurfSense.",
|
||||||
"author": "https://github.com/MODSetter",
|
"author": "https://github.com/MODSetter",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
|
|
@ -220,7 +220,7 @@ export const AppSidebar = memo(function AppSidebar({
|
||||||
</div>
|
</div>
|
||||||
<div className="grid flex-1 text-left text-sm leading-tight">
|
<div className="grid flex-1 text-left text-sm leading-tight">
|
||||||
<span className="truncate font-medium">SurfSense</span>
|
<span className="truncate font-medium">SurfSense</span>
|
||||||
<span className="truncate text-xs">beta v0.0.7</span>
|
<span className="truncate text-xs">beta v0.0.8</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</SidebarMenuButton>
|
</SidebarMenuButton>
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "surfsense_web",
|
"name": "surfsense_web",
|
||||||
"version": "0.0.7",
|
"version": "0.0.8",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "SurfSense Frontend",
|
"description": "SurfSense Frontend",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue