We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e75effc commit 2f6dffdCopy full SHA for 2f6dffd
backend/beets_flask/server/routes/library/stats.py
@@ -57,7 +57,7 @@ async def stats():
57
"lastItemModified": (
58
round(items_stats[0][2] * 1000) if items_stats[0][2] is not None else None
59
),
60
- "runtime": items_stats[0][3],
+ "runtime": items_stats[0][3] if items_stats[0][2] is not None else 0,
61
}
62
63
return jsonify(ret)
0 commit comments