mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
fix(rpc): correct URLPath in package results
This was incorrectly using the particular Package record's name to format options.snapshot_uri in order to produce URLPath. It should, instead, use the PackageBase record's name, which this commit resolves. Bug reported by thomy2000 Closes #382 Signed-off-by: Kevin Morris <kevr@0cost.org>
This commit is contained in:
parent
edacde48e5
commit
801df832e5
2 changed files with 23 additions and 1 deletions
|
@ -138,7 +138,7 @@ class RPC:
|
|||
"Version": package.Version,
|
||||
"Description": package.Description,
|
||||
"URL": package.URL,
|
||||
"URLPath": snapshot_uri % package.Name,
|
||||
"URLPath": snapshot_uri % package.PackageBaseName,
|
||||
"NumVotes": package.NumVotes,
|
||||
"Popularity": pop,
|
||||
"OutOfDate": package.OutOfDateTS,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue