Skip to content

Commit

Permalink
Record ReplyCount
Browse files Browse the repository at this point in the history
  • Loading branch information
lxcode committed Jun 6, 2024
1 parent 03b8914 commit 1d96700
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/hydrator/hydrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,7 @@ func (h *Hydrator) flattenPostView(post *bsky.FeedDefs_PostView) (result map[str
result["CID"] = post.Cid
result["LikeCount"] = post.LikeCount
result["RepostCount"] = post.RepostCount
result["ReplyCount"] = post.ReplyCount
result["LikeCount"] = post.LikeCount
result["URI"] = post.Uri

Expand Down
10 changes: 10 additions & 0 deletions pkg/output/bq/schema/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,11 @@ func GetSchema() bigquery.Schema {
"name": "LikeCount",
"type": "INTEGER"
},
{
"mode": "NULLABLE",
"name": "ReplyCount",
"type": "INTEGER"
},
{
"mode": "NULLABLE",
"name": "RepostCount",
Expand Down Expand Up @@ -660,6 +665,11 @@ func GetSchema() bigquery.Schema {
"name": "RepostCount",
"type": "INTEGER"
},
{
"mode": "NULLABLE",
"name": "ReplyCount",
"type": "INTEGER"
},
{
"mode": "NULLABLE",
"name": "Text",
Expand Down

0 comments on commit 1d96700

Please sign in to comment.