Commit d0fb0292 authored by Francesco Poldi's avatar Francesco Poldi

Fix counts

parent 2090b61b
...@@ -13,9 +13,9 @@ def Tweet(config, t): ...@@ -13,9 +13,9 @@ def Tweet(config, t):
output = output.replace("{tweet}", t.tweet) output = output.replace("{tweet}", t.tweet)
output = output.replace("{location}", t.location) output = output.replace("{location}", t.location)
output = output.replace("{hashtags}", str(t.hashtags)) output = output.replace("{hashtags}", str(t.hashtags))
output = output.replace("{replies}", t.replies) output = output.replace("{replies}", t.replies_count)
output = output.replace("{retweets}", t.retweets) output = output.replace("{retweets}", t.retweets_count)
output = output.replace("{likes}", t.likes) output = output.replace("{likes}", t.likes_count)
output = output.replace("{link}", t.link) output = output.replace("{link}", t.link)
output = output.replace("{is_retweet}", str(t.retweet)) output = output.replace("{is_retweet}", str(t.retweet))
output = output.replace("{user_rt}", t.user_rt) output = output.replace("{user_rt}", t.user_rt)
...@@ -32,7 +32,7 @@ def Tweet(config, t): ...@@ -32,7 +32,7 @@ def Tweet(config, t):
hashtags = ",".join(t.hashtags) hashtags = ",".join(t.hashtags)
output += f" {hashtags}" output += f" {hashtags}"
if config.Stats: if config.Stats:
output += f" | {t.replies} replies {t.retweets} retweets {t.likes} likes" output += f" | {t.replies_count} replies {t.retweets_count} retweets {t.likes_count} likes"
if config.Location: if config.Location:
output += f" | Location {t.location}" output += f" | Location {t.location}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment