-
I have a pre-existing curated user list which was created directly in the Bluesky client, which just fetches posts from the Guggenheim, MoMA, and Tate art bots. Now I have also created a custom feed to mimic the curated user list (and perhaps hopefully replace it). I can compare the output of my feed to that of the list, to see how well my feed is or is not working. This is the Python snippet for my data filter for this specific feed: museums = [
'did:plc:jx26hj3zymmn53cfjetkmwry', # guggenheim
'did:plc:pa2epocjfar2fzz4symzmb5t' # tate
'did:plc:z5pxuiispc5yacvofktometn', # moma
]
if author_did in museums:
post_dict = {
'feed_name': os.environ.get('MU_SLUG', None),
'uri': created_post['uri'],
'cid': created_post['cid'],
}
posts_to_create.append(post_dict) This is the extent of my gunicorn config file that is serving the app on Fly (I don't have the data stream indexer and the feeds server separated, I'm not sure how or if it would even make a difference): bind = '0.0.0.0:8000'
threads = 4
#workers = 1 # 2
#timeout = 120 But looking at the screenshot below, you can see my feed (on the right) is missing some of the posts caught by the curated list (on the left ... an example of a post my feed missed is circled in green): It worries me that my feed is already missing posts, before I even try to get it to compare post author DID's to a list of DID's stored in a database table (for testing here, I just manually hard-coded three DID's in a Python list directly in the source code, which is not my long-term intent). (Note: I'm not trying to resolve DID's in the Flask app, I have done that separately in an offline Django app that is storing info for accounts ... ideally in the future I want the Flask app to be able to just read from the separate Django SQLite database.) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Your provided code looks fine but
|
Beta Was this translation helpful? Give feedback.
-
I am closing this for now as it seems my Bluesky (bsky.app) client language settings are causing this problem |
Beta Was this translation helpful? Give feedback.
I am closing this for now as it seems my Bluesky (bsky.app) client language settings are causing this problem