chore: batch commit remaining changes
CI / backend (push) Canceled after 0s
CI / frontend (push) Canceled after 0s

Includes search engine improvements, Alembic migrations,
new services (pubmed_daily_update, query_expansion),
frontend updates, and documentation sync.
This commit is contained in:
34047007@qq.com
2026-07-27 08:35:12 +08:00
parent 35b0a5c565
commit 62ca8fa6b8
82 changed files with 314248 additions and 1519 deletions
+13
View File
@@ -0,0 +1,13 @@
import gzip, io
data = open('pubmed26n1546.xml.gz', 'rb').read()
print(f'File size: {len(data)}')
try:
decomp = gzip.decompress(data)
print(f'Valid gzip! Decompressed: {len(decomp)} bytes')
from lxml import etree
root = etree.parse(io.BytesIO(decomp)).getroot()
articles = root.findall('.//PubmedArticle')
deletes = root.findall('.//DeleteCitation')
print(f'PubmedArticle: {len(articles)}, DeleteCitation: {len(deletes)}')
except Exception as e:
print(f'Corrupted: {e}')