From 5b122a1a15b8324f609ca9ac6fcb4ad7c4b45379 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Tue, 4 Jul 2023 09:38:58 +0300 Subject: [PATCH] chore: code clean-up --- crud.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/crud.py b/crud.py index 3a09a7a..ad0de8e 100644 --- a/crud.py +++ b/crud.py @@ -102,22 +102,6 @@ async def get_merchant_for_user(user_id: str) -> Optional[Merchant]: return Merchant.from_row(row) if row else None -async def get_merchant_activity(merchant_id): - - rows = await db.fetchall( - """ - SELECT time from nostrmarket.direct_messages WHERE merchant_id = ? - ORDER by time DESC - """, - (merchant_id,), - ) - - # row = await db.fetchone("SELECT now()") - - print("### time", time.time()) - print("### rows", rows) - return rows - async def delete_merchant(merchant_id: str) -> None: await db.execute( "DELETE FROM nostrmarket.merchants WHERE id = ?",