mirror of
https://codeberg.org/postscriptum/snac2nex.git
synced 2026-04-01 13:45:28 +00:00
fix updated counter
This commit is contained in:
parent
9f18f63df9
commit
1df12cee92
2 changed files with 5 additions and 6 deletions
|
|
@ -44,7 +44,7 @@ fn sync(snac: &Snac, nex: &Nex, is_binary: bool) -> Result<(usize, usize)> {
|
|||
// skip non authorized content
|
||||
if let Some(content) = post.source_content {
|
||||
println!("\t\tsync post `{}`...", post.id);
|
||||
nex.sync(
|
||||
u += nex.sync(
|
||||
&user.name,
|
||||
content,
|
||||
post.url,
|
||||
|
|
@ -76,9 +76,8 @@ fn sync(snac: &Snac, nex: &Nex, is_binary: bool) -> Result<(usize, usize)> {
|
|||
}),
|
||||
(post.published, post.updated),
|
||||
)?;
|
||||
u += 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
Ok((t, u))
|
||||
Ok((u, t))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue