We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a3eb53 commit 35ed450Copy full SHA for 35ed450
comiclib/main.py
@@ -373,7 +373,7 @@ def extract_archive(id: str):
373
@app.get("/api/database/stats")
374
def get_statistics(minweight: int = 1, db: Session = Depends(get_db)):
375
return [
376
- {"namespace": tag.rpartition(':')[0], "text": tag.rpartition(
+ {"namespace": tag.partition(':')[0], "text": tag.partition(
377
':')[-1], "weight": count}
378
for tag, count in db.execute(select(Tag.tag, func.count(Tag.tag)).group_by(Tag.tag).having(func.count(Tag.tag) >= minweight))
379
]
0 commit comments