fix(fastapi): refresh records when fetching updated packages

Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
Kevin Morris 2021-11-27 21:35:35 -08:00
parent 232594ae44
commit 199622c53f
No known key found for this signature in database
GPG key ID: F7E46DED420788F3

View file

@ -167,6 +167,7 @@ def updated_packages(limit: int = 0,
for pkg in query:
# For each Package returned by the query, append a dict
# containing Package columns we're interested in.
db.refresh(pkg)
packages.append({
"Name": pkg.Name,
"Version": pkg.Version,