mirror of
https://github.com/vlinkz/nix-software-center.git
synced 2024-09-17 16:27:28 +03:00
Fix displayed version in update and installed page
This commit is contained in:
parent
ea7fa1f3bc
commit
bb2afaa587
@ -1443,7 +1443,7 @@ FROM pkgs JOIN meta ON (pkgs.attribute = meta.attribute) WHERE pkgs.attribute =
|
|||||||
.bind(installedpkg)
|
.bind(installedpkg)
|
||||||
.fetch_one(pool)
|
.fetch_one(pool)
|
||||||
.await;
|
.await;
|
||||||
if let Ok((version, pname)) = versionpname {
|
if let Ok((pname, version)) = versionpname {
|
||||||
let desc: sqlx::Result<(String,)> =
|
let desc: sqlx::Result<(String,)> =
|
||||||
sqlx::query_as("SELECT description FROM meta WHERE attribute = $1")
|
sqlx::query_as("SELECT description FROM meta WHERE attribute = $1")
|
||||||
.bind(installedpkg)
|
.bind(installedpkg)
|
||||||
@ -1474,7 +1474,6 @@ FROM pkgs JOIN meta ON (pkgs.attribute = meta.attribute) WHERE pkgs.attribute =
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// if let Some(item) = self.pkgitems.get(installedpkg) {
|
|
||||||
installedsystemitems.push(InstalledItem {
|
installedsystemitems.push(InstalledItem {
|
||||||
name: name.to_string(),
|
name: name.to_string(),
|
||||||
pname: pname.to_string(),
|
pname: pname.to_string(),
|
||||||
|
Loading…
Reference in New Issue
Block a user