diff --git a/cmd/scripts/file-size-sync/sync.go b/cmd/scripts/file-size-sync/sync.go index ff4602c5..2c87ae99 100644 --- a/cmd/scripts/file-size-sync/sync.go +++ b/cmd/scripts/file-size-sync/sync.go @@ -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)