summaryrefslogtreecommitdiff
path: root/src/database.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/database.rs')
-rw-r--r--src/database.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/database.rs b/src/database.rs
index 61a51cb..055d1ef 100644
--- a/src/database.rs
+++ b/src/database.rs
@@ -252,6 +252,7 @@ impl TagDatabase {
})
}
+ /// Return the `n` greatest tags, ordered by number of associated images.
pub fn top_tags(&self, n: i64) -> Result<Vec<(i64, String)>> {
Ok(self
.0