Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Запрос в базу ищу по ссылке
- contact_list = AllPublication.objects.filter(link_publication = ['t.me/BESTPER/22663', 'https://t.me/BESTPER/22638'])
- # Модель
- class AllPublication(models.Model):
- source_publication = models.CharField('Источник', max_length=100)
- name_publication = models.CharField('Название', max_length=100)
- view_publication = models.IntegerField('Просмотры')
- like_publication = models.IntegerField('Лайки')
- repost_publication = models.IntegerField('Репосты')
- comment_publication = models.IntegerField('Комментарии')
- date_publication = models.DateField('Дата публикации')
- link_publication = models.CharField('Ссылка', max_length=100, unique = True)
Advertisement
Add Comment
Please, Sign In to add comment