p3 & dedupe typeahead results

This commit is contained in:
2025-02-16 14:20:39 -05:00
parent 035a52d9b2
commit f68abca2b1
2 changed files with 3 additions and 2 deletions

View File

@ -30,7 +30,8 @@ class RandMsg(FastAPI):
short: Optional[bool] = False
if isinstance(data, RandMsgRequest):
short = data.short
db_rand_selected: int = 9
if short:
db_rand_selected: int = 9
db_rand_selected = random.choice([0, 1, 3])
title_attr: str = "Unknown"