mirror of
https://github.com/MCV-Software/TWBlue.git
synced 2024-11-26 12:53:12 -06:00
Removed unneeded code
This commit is contained in:
parent
3450e0d38f
commit
c9b75925b9
@ -489,7 +489,7 @@ class BaseBuffer(base.Buffer):
|
|||||||
post = self.get_item()
|
post = self.get_item()
|
||||||
# Update object so we can retrieve newer stats
|
# Update object so we can retrieve newer stats
|
||||||
post = self.session.api.status(id=post.id)
|
post = self.session.api.status(id=post.id)
|
||||||
print(post)
|
# print(post)
|
||||||
msg = messages.viewPost(post, offset_hours=self.session.db["utc_offset"], item_url=self.get_item_url())
|
msg = messages.viewPost(post, offset_hours=self.session.db["utc_offset"], item_url=self.get_item_url())
|
||||||
|
|
||||||
def ocr_image(self):
|
def ocr_image(self):
|
||||||
|
@ -457,7 +457,7 @@ class BaseBuffer(base.Buffer):
|
|||||||
def _retweet_with_comment(self, tweet, id):
|
def _retweet_with_comment(self, tweet, id):
|
||||||
if hasattr(tweet, "retweeted_status"):
|
if hasattr(tweet, "retweeted_status"):
|
||||||
tweet = tweet.retweeted_status
|
tweet = tweet.retweeted_status
|
||||||
retweet = messages.tweet(session=self.session, title=_("Quote"), caption=_("Add your comment to the tweet"), max=256, thread_mode=False)
|
retweet = messages.tweet(session=self.session, title=_("Quote"), caption=_("Add your comment to the tweet"), thread_mode=False)
|
||||||
if retweet.message.ShowModal() == widgetUtils.OK:
|
if retweet.message.ShowModal() == widgetUtils.OK:
|
||||||
text = retweet.message.text.GetValue()
|
text = retweet.message.text.GetValue()
|
||||||
tweet_data = dict(text=text, attachments=retweet.attachments, poll_period=retweet.poll_period, poll_options=retweet.poll_options)
|
tweet_data = dict(text=text, attachments=retweet.attachments, poll_period=retweet.poll_period, poll_options=retweet.poll_options)
|
||||||
|
Loading…
Reference in New Issue
Block a user