refactor(storage): remove duplicate watchlist query
This commit is contained in:
@@ -480,19 +480,6 @@ class MarketRepository:
|
||||
(seat_name, alias_name, updated_at, updated_by),
|
||||
)
|
||||
|
||||
def watchlist(
|
||||
self, connection: sqlite3.Connection, user_id: int
|
||||
) -> tuple[sqlite3.Row, ...]:
|
||||
return tuple(
|
||||
connection.execute(
|
||||
"""
|
||||
SELECT identifier, name, sector FROM watchlist_entries
|
||||
WHERE user_id = ? ORDER BY created_at, identifier
|
||||
""",
|
||||
(user_id,),
|
||||
).fetchall()
|
||||
)
|
||||
|
||||
def save_chart(
|
||||
self,
|
||||
connection: sqlite3.Connection,
|
||||
|
||||
Reference in New Issue
Block a user