Short url visits not count wheregoes
All checks were successful
Build on push / prepare (push) Successful in 5s
Build on push / build-redirector (push) Successful in 32s
Build on push / build-api (push) Successful in 32s
Build on push / build-web (push) Successful in 56s

This commit is contained in:
Sven Heidemann 2025-05-02 13:00:05 +02:00
parent 660294313e
commit 38e8dc801e

View File

@ -17,7 +17,8 @@ class ShortUrlVisitDao(DbModelDaoABC[ShortUrlVisit]):
result = await self._db.select_map(
f"""SELECT COUNT(*) FROM {self._table_name}
WHERE shortUrlId = {fid}
AND deleted = FALSE"""
AND deleted = FALSE
AND client NOT LIKE '%wheregoes%'"""
)
if result is None or len(result) == 0:
return 0