Skip to content

Commit fc21d91

Browse files
committed
status command now list media by lastSeen, the older ones are shown first.
1 parent e1f8a1e commit fc21d91

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/kotlin/info/skyblond/oam/command/StatusCommand.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ object StatusCommand : CliktCommand(
3535
val currentTimestamp = System.currentTimeMillis() / 1000
3636
echo("\nMedias:")
3737
transaction {
38-
Medias.selectAll().map { it.parseMedia() }
38+
Medias.selectAll().orderBy(Medias.lastSeen).map { it.parseMedia() }
3939
}.filter {
4040
// warning if time not correct
4141
if (it.lastSeen > currentTimestamp)

0 commit comments

Comments
 (0)