cleanup/minor

This commit is contained in:
2025-03-12 09:37:44 -04:00
parent 685ac5f2f6
commit 97808e388f
7 changed files with 10 additions and 12 deletions

View File

@ -11,7 +11,7 @@ class DB:
"sqlite_dbs", "lovehate.db")
async def get_wholovehates(self, thing: str, loves: bool = False,
hates: bool = False) -> list[tuple]|bool:
hates: bool = False) -> Union[list[tuple], bool]:
"""
Get a list of users who have professed their love OR hatred for <thing>
@ -20,7 +20,7 @@ class DB:
loves (bool): Are we looking for loves?
hates (bool): ...or are we looking for hates?
Returns:
list[tuple]
Union[list[tuple], bool]
"""
query: str = "SELECT display_name FROM lovehate WHERE thing LIKE ? AND flag = ?"