Merge pull request 'fix: ensure count is never null in GET /refractor/cards (#183)' (#185) from issue/183-bug-get-refractor-cards-returns-count-null-with-ve into main
Reviewed-on: #185
This commit is contained in:
commit
02da6f9cc8
@ -31,7 +31,7 @@ docker build -t paper-dynasty-db . # Build image
|
||||
| **URL** | pddev.manticorum.com | pd.manticorum.com |
|
||||
| **Host** | `ssh pd-database` | `ssh akamai` → `/root/container-data/paper-dynasty` |
|
||||
| **API container** | `dev_pd_database` | `pd_api` |
|
||||
| **PostgreSQL** | `pd_postgres` (port 5432) | `pd_postgres` |
|
||||
| **PostgreSQL** | `sba_postgres` / `paperdynasty_dev` / `sba_admin` | `pd_postgres` / `pd_master` |
|
||||
| **Adminer** | port 8081 | — |
|
||||
| **API port** | 816 | 815 |
|
||||
| **Image** | `manticorum67/paper-dynasty-database` | `manticorum67/paper-dynasty-database` |
|
||||
|
||||
@ -211,7 +211,7 @@ async def list_card_states(
|
||||
if evaluated_only:
|
||||
query = query.where(RefractorCardState.last_evaluated_at.is_null(False))
|
||||
|
||||
total = query.count()
|
||||
total = query.count() or 0
|
||||
items = []
|
||||
for state in query.offset(offset).limit(limit):
|
||||
player_name = None
|
||||
|
||||
Loading…
Reference in New Issue
Block a user