chg: [website] fixed style
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Deploy Jekyll with GitHub Pages dependencies preinstalled / build (push) Waiting to run
Deploy Jekyll with GitHub Pages dependencies preinstalled / deploy (push) Blocked by required conditions
MyPy / Python 3.10 sample (push) Waiting to run
MyPy / Python 3.11 sample (push) Waiting to run
MyPy / Python 3.12 sample (push) Waiting to run
API Test / Python 3.10 sample (push) Waiting to run
API Test / Python 3.11 sample (push) Waiting to run
API Test / Python 3.12 sample (push) Waiting to run
Models Tests / Python 3.10 sample (push) Waiting to run
Models Tests / Python 3.11 sample (push) Waiting to run
Models Tests / Python 3.12 sample (push) Waiting to run

This commit is contained in:
Cédric Bonhomme 2024-11-12 09:22:39 +01:00
parent e3506e69a7
commit 0f1b8fc583
Signed by untrusted user who does not match committer: cedric
GPG key ID: A1CB94DE57B7A70D

View file

@ -221,7 +221,9 @@ class SightingsList(Resource): # type: ignore[misc]
if sighting.get("creation_timestamp"): if sighting.get("creation_timestamp"):
sighting["creation_timestamp"] = sighting["creation_timestamp"] sighting["creation_timestamp"] = sighting["creation_timestamp"]
else: else:
sighting["creation_timestamp"] = current_time.strftime("%Y-%m-%dT%H:%M:%S.%fZ") sighting["creation_timestamp"] = current_time.strftime(
"%Y-%m-%dT%H:%M:%S.%fZ"
)
if ( if (
Sighting.query.filter( Sighting.query.filter(