Skip to content

Commit

Permalink
Merge branch 'master' into BlueSkyUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
dachosen1 authored Dec 22, 2024
2 parents 7bae98f + 4f18910 commit a05c2e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
UploadEarthQuakeLocation,
get_date_range_summary,
)

from nearquake.post_manager import post_to_all_platforms, save_tweet_to_db
from nearquake.open_ai_client import generate_response
from nearquake.utils import convert_datetime, format_earthquake_alert
Expand Down
2 changes: 0 additions & 2 deletions nearquake/post_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ def post(self, post_text: str) -> bool:
_logger.error(f"Failed to post to BlueSky: {post_text}. Error: {e}")
return False


def save_tweet_to_db(tweet_text: dict, conn) -> bool:
"""
Save the posted tweet data into the database.
Expand All @@ -69,7 +68,6 @@ def save_tweet_to_db(tweet_text: dict, conn) -> bool:
_logger.error(f"Failed to save tweet to database {tweet_text}. Error: {e}")
return False


def post_to_all_platforms(post_text: str) -> dict:
platforms = [TwitterPost(), BlueSkyPost()]
for platform in platforms:
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
alembic==1.13.3
alembic==1.14.0
atproto==0.0.56
black==24.10.0
openai==1.30.3
pillow==10.2.0
psycopg2-binary==2.9.10
requests==2.32.2
SQLAlchemy==2.0.24
tqdm==4.66.6
tqdm==4.67.1
tweepy==4.14.0
python-dotenv==1.0.1
urllib3>=2.2.2 # not directly required, pinned by Snyk to avoid a vulnerability
Expand Down

0 comments on commit a05c2e9

Please sign in to comment.