Skip to content

Commit

Permalink
Unbreak, update depends and fix issue with null dicts on some user posts
Browse files Browse the repository at this point in the history
  • Loading branch information
lxcode committed Oct 20, 2024
1 parent f2d97a8 commit 288b2de
Show file tree
Hide file tree
Showing 4 changed files with 221 additions and 163 deletions.
2 changes: 1 addition & 1 deletion gogettr/capabilities/user_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def pull(
params={
"max": 20,
"dir": "fwd",
"incl": "posts|stats|userinfo|shared|liked",
"incl": "posts|stats|userinfo|shared|liked|pvotes",
"fp": fp_setting,
},
):
Expand Down
2 changes: 2 additions & 0 deletions gogettr/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ def merge(*dicts):

out = dict()
for dictionary in dicts:
if dictionary is None:
return out
for (key, val) in dictionary.items():
out[key] = val
return out
Expand Down
Loading

0 comments on commit 288b2de

Please sign in to comment.