Fix books update

This commit is contained in:
2022-02-09 14:50:04 +03:00
parent a4b8e4ce88
commit a545ec3538

View File

@@ -47,7 +47,7 @@ async def update_books(ctx) -> bool:
for offset in range(0, count, 4096): for offset in range(0, count, 4096):
rows = await postgres_pool.fetch( rows = await postgres_pool.fetch(
"SELECT id, title, lang FROM books " "SELECT id, title, lang FROM books WHERE is_deleted = 'f' "
f"ORDER BY id LIMIT 4096 OFFSET {offset}" f"ORDER BY id LIMIT 4096 OFFSET {offset}"
) )