Skip to content

Commit 06b92b5

Browse files
code refactored
1 parent 371c0b4 commit 06b92b5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tasks/schedulers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ async def do_create_tweet(self, article: ArticleData) -> dict[str, str]:
131131
else:
132132
tweet_text: str = f"Financial & Business News API\n{hashtags}\n- {article.title}\n{internal_link}"
133133

134+
self._count += 1
135+
134136
if len(tweet_text) > self._max_status_length:
135137
tweet_text = f"Financial & Business News API\n- {article.title}\n{internal_link}"
136138

0 commit comments

Comments
 (0)