Skip to content

Commit 35ed450

Browse files
committed
[API] fix tags with many quotes
1 parent 8a3eb53 commit 35ed450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

comiclib/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ def extract_archive(id: str):
373373
@app.get("/api/database/stats")
374374
def get_statistics(minweight: int = 1, db: Session = Depends(get_db)):
375375
return [
376-
{"namespace": tag.rpartition(':')[0], "text": tag.rpartition(
376+
{"namespace": tag.partition(':')[0], "text": tag.partition(
377377
':')[-1], "weight": count}
378378
for tag, count in db.execute(select(Tag.tag, func.count(Tag.tag)).group_by(Tag.tag).having(func.count(Tag.tag) >= minweight))
379379
]

0 commit comments

Comments
 (0)