Skip to content

Commit

Permalink
tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
jchanolm committed Nov 14, 2024
1 parent 51a8994 commit d8c36ca
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pipelines/fetch-farcaster-data/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def run(self):
member_fids = [str(member['user']['fid']) for member in members if 'user' in member and 'fid' in member['user']]
follower_fids = [str(follower['fid']) for follower in followers if 'fid' in follower]
all_fids = list(set(member_fids + follower_fids))
channel_dict['all_channels'] = self.get_all_user_channels(followers)
channel_dict['all_channels'] = self.get_all_user_channels(follower_fids)
channel_dict['all_followed_channels'] = self.get_all_user_channels(all_fids)
channel_dict['casts'] = channel_casts = self.get_channel_casts(channel)
all_channel_data["channels"].append(channel_dict)
Expand Down
2 changes: 0 additions & 2 deletions pipelines/ingest-farcaster-data/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import logging
import time
import re
import math
import sys
from datetime import datetime
from typing import Optional, Union, List, Dict, Any
Expand All @@ -13,7 +12,6 @@
import json
import boto3
from botocore.exceptions import ClientError
from tqdm import tqdm

# Set up logging
logging.basicConfig(level=logging.INFO)
Expand Down
2 changes: 1 addition & 1 deletion pipelines/ingest-farcaster-data/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def create_channel_followers(self):
followers_df = pd.DataFrame([{
'channelId': channelId,
'fid': str(user.get('fid')),
'verifiedSocials': user.get('profile').get('verified_accounts'),
'verifiedSocials':user.get('profile', {}).get('verified_accounts', []),
'username': self.cyphers.sanitize_text(user.get('username', '')),
'display_name': self.cyphers.sanitize_text(user.get('display_name', '')),
'custody_address': user.get('custody_address', ''),
Expand Down

0 comments on commit d8c36ca

Please sign in to comment.