mirror of
https://github.com/cve-search/vulnerability-lookup.git
synced 2024-12-29 17:01:34 +00:00
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
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:
parent
e3506e69a7
commit
0f1b8fc583
1 changed files with 3 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue