Skip to content

Commit

Permalink
Merge pull request #116 from keboola/kacurez-stories-SUPPORT-3365
Browse files Browse the repository at this point in the history
support stories extraction
  • Loading branch information
kacurez authored Nov 28, 2023
2 parents c4f23be + ab31a35 commit a242e58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/keboola/facebook/extractor/query.clj
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@
(defn query-path-ratings? [{:keys [path] :or {path ""}}]
(string/includes? (or path "") "ratings"))

(defn query-path-stories? [{:keys [path] :or {path ""}}]
(string/includes? (or path "") "stories"))

(defn query-need-userinfo? [{:keys [fields path] :or {fields "" path ""}}]
(or (some #(string/includes? (or fields "") %) ["likes" "from" "username"])
(string/includes? (or path "") "likes")))
Expand All @@ -93,6 +96,7 @@
(or (query-contains-insights? query)
(query-path-ratings? query)
(query-path-feed? query)
(query-path-stories? query)
(query-path-posts? query)
(query-need-userinfo? query))))

Expand Down

0 comments on commit a242e58

Please sign in to comment.