Skip to content

Commit

Permalink
fix tweet error
Browse files Browse the repository at this point in the history
  • Loading branch information
dachosen1 committed Nov 3, 2024
1 parent 61d8dc3 commit fa180c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,17 +70,12 @@
for time in ["hour", "day", "week"]:
run.upload(url=generate_time_period_url(time))
tweet.upload()
loc.upload(
start_date=convert_datetime(datetime.now().date()),
upload_type="single",
)

start_date = datetime.now().date() - timedelta(days=30)
end_date = datetime.now().date()
loc.backfill(
start_date=convert_datetime(start_date, format_type="date"),
end_date=convert_datetime(end_date, format_type="date"),
upload_type="batch",
end_date=convert_datetime(end_date, format_type="date")
)

if args.daily:
Expand Down
2 changes: 1 addition & 1 deletion nearquake/data_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def upload(self):
)

try:
self.post_tweet(tweet_text=tweet_text, conn=self.conn)
self.run_tweet_operator(tweet_text=tweet_text, conn=self.conn)
_logger.info(
"Recorded recent tweet posted in the database recent into the Database "
)
Expand Down

0 comments on commit fa180c9

Please sign in to comment.