fix: address PR #100 review comments
This commit is contained in:
@@ -266,9 +266,8 @@ async def task_counts_for_board(
|
|||||||
for legacy_task_id, total, pending in list(await session.exec(legacy_statement)):
|
for legacy_task_id, total, pending in list(await session.exec(legacy_statement)):
|
||||||
if legacy_task_id is None:
|
if legacy_task_id is None:
|
||||||
continue
|
continue
|
||||||
task_uuid = legacy_task_id
|
previous = counts.get(legacy_task_id, (0, 0))
|
||||||
previous = counts.get(task_uuid, (0, 0))
|
counts[legacy_task_id] = (
|
||||||
counts[task_uuid] = (
|
|
||||||
previous[0] + int(total or 0),
|
previous[0] + int(total or 0),
|
||||||
previous[1] + int(pending or 0),
|
previous[1] + int(pending or 0),
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -39,11 +39,15 @@ The DB runs in Postgres (Compose `db` service) and persists to the `postgres_dat
|
|||||||
Example with `pg_dump` (run on the host):
|
Example with `pg_dump` (run on the host):
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# uses values from .env
|
# load variables from .env (trusted file only)
|
||||||
export POSTGRES_DB=mission_control
|
set -a
|
||||||
export POSTGRES_USER=postgres
|
. ./.env
|
||||||
export POSTGRES_PASSWORD=postgres
|
set +a
|
||||||
export POSTGRES_PORT=5432
|
|
||||||
|
: "${POSTGRES_DB:?set POSTGRES_DB in .env}"
|
||||||
|
: "${POSTGRES_USER:?set POSTGRES_USER in .env}"
|
||||||
|
: "${POSTGRES_PORT:?set POSTGRES_PORT in .env}"
|
||||||
|
: "${POSTGRES_PASSWORD:?set POSTGRES_PASSWORD in .env (strong, unique value; not \"postgres\")}"
|
||||||
|
|
||||||
PGPASSWORD="$POSTGRES_PASSWORD" pg_dump \
|
PGPASSWORD="$POSTGRES_PASSWORD" pg_dump \
|
||||||
-h 127.0.0.1 -p "$POSTGRES_PORT" -U "$POSTGRES_USER" \
|
-h 127.0.0.1 -p "$POSTGRES_PORT" -U "$POSTGRES_USER" \
|
||||||
|
|||||||
Reference in New Issue
Block a user