Skip to content

Commit 2f6dffd

Browse files
committed
Closes #264
1 parent e75effc commit 2f6dffd

File tree

1 file changed

+1
-1
lines changed
  • backend/beets_flask/server/routes/library

1 file changed

+1
-1
lines changed

backend/beets_flask/server/routes/library/stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ async def stats():
5757
"lastItemModified": (
5858
round(items_stats[0][2] * 1000) if items_stats[0][2] is not None else None
5959
),
60-
"runtime": items_stats[0][3],
60+
"runtime": items_stats[0][3] if items_stats[0][2] is not None else 0,
6161
}
6262

6363
return jsonify(ret)

0 commit comments

Comments
 (0)