Skip to content

Commit

Permalink
skip imgs
Browse files Browse the repository at this point in the history
  • Loading branch information
neurosnap committed Nov 12, 2023
1 parent 995d7b2 commit bd7f5fe
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/scripts/file-size-sync/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ func main() {
posts, err := picoDb.FindPosts()
bail(err)
for _, post := range posts {
if post.Space == "imgs" {
continue
}
post.FileSize = binary.Size([]byte(post.Text))
_, err := picoDb.UpdatePost(post)
bail(err)
Expand Down

0 comments on commit bd7f5fe

Please sign in to comment.