From 7a8962894ee7b522ca4ec25af71e0fae32b5dc69 Mon Sep 17 00:00:00 2001 From: Wu Tingfeng Date: Sat, 23 Dec 2023 01:25:33 +0800 Subject: [PATCH] slim --- .github/workflows/ci.yml | 2 +- train_arrival.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index afdfcd2..0631f99 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,7 +7,7 @@ jobs: matrix: python-version: ['2.7','3.12'] container: - image: python:${{ matrix.python-version }} + image: python:${{ matrix.python-version }}-slim runs-on: ubuntu-latest steps: - name: checkout repo content diff --git a/train_arrival.py b/train_arrival.py index 98b448a..cd0ed8c 100644 --- a/train_arrival.py +++ b/train_arrival.py @@ -62,7 +62,7 @@ def _get(url, params=None): status_code = f.status if hasattr(f, "status") else f.getcode() if status_code == 200: data = f.read().decode("utf-8") - json.loads(data) # Validate JSON string. + _ = json.loads(data) # Validate JSON string. return data logger.error(status_code) return "{}"