Skip to content

Commit

Permalink
Fix Twitter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sdelquin committed Sep 28, 2023
1 parent bc02319 commit 3584a92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/jobs/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def get_full_url(self):
def save(self, *args, **kwargs):
already_exists = self.pk is not None
super().save(*args, **kwargs)
''' tweepy.error.TweepError: [{'message': 'You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.twitter.com/en/portal/product', 'code': 453}]
if not already_exists and self.approved:
# tweepy.error.TweepError: [{'message': 'You currently have access to a subset of Twitter API v2 endpoints and limited v1.1 endpoints (e.g. media post, oauth) only. If you need access to this endpoint, you may need a different access level. You can learn more here: https://developer.twitter.com/en/portal/product', 'code': 453}]
# t = Twitter()
t = Twitter()
msg = f'💼 Oferta de empleo: {self} {self.get_full_url()}'
t.post(msg)
t.post(msg)'''

0 comments on commit 3584a92

Please sign in to comment.