Skip to content

Commit 19416a8

Browse files
committed
Replace name in UPDATE query as well
1 parent 8af7dc7 commit 19416a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/db/add_package.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ pub fn add_package_into_database(conn: &Connection,
9595
&format!("{}", pkg.manifest().version()),
9696
&release_time,
9797
&dependencies.to_json(),
98-
&pkg.targets()[0].name(),
98+
&pkg.targets()[0].name().replace("-", "_"),
9999
&yanked,
100100
&res.build_success,
101101
&res.have_doc,

0 commit comments

Comments
 (0)