From 9a9f4a183c3086f8b4eb33dcc509f7464a32db81 Mon Sep 17 00:00:00 2001 From: Andrew Rogl Date: Mon, 30 Sep 2024 06:30:27 +1000 Subject: [PATCH] VS code and auto complete :sad: --- CONTRIBUTING.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CONTRIBUTING.rst b/CONTRIBUTING.rst index 8761b912ee..ee4edbdcb7 100644 --- a/CONTRIBUTING.rst +++ b/CONTRIBUTING.rst @@ -237,7 +237,7 @@ There are a few coding conventions we use in beets: .. code-block:: python with g.lib.transaction() as tx: - rows = tx.query("SELECT DISTINCT '{0}'' FROM '{1}'' ORDER BY '{2}'"" + rows = tx.query("SELECT DISTINCT '{0}' FROM '{1}' ORDER BY '{2}'" .format(field, model._table, sort_field)) To fetch Item objects from the database, use lib.items(…) and supply