Skip to content

Commit 3584a92

Browse files
committed
Fix Twitter issues
1 parent bc02319 commit 3584a92

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

apps/jobs/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ def get_full_url(self):
9999
def save(self, *args, **kwargs):
100100
already_exists = self.pk is not None
101101
super().save(*args, **kwargs)
102+
''' 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}]
102103
if not already_exists and self.approved:
103-
# 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}]
104-
# t = Twitter()
104+
t = Twitter()
105105
msg = f'💼 Oferta de empleo: {self} {self.get_full_url()}'
106-
t.post(msg)
106+
t.post(msg)'''

0 commit comments

Comments
 (0)