Guest User

Que

a guest
Feb 15th, 2021
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.79 KB | None | 0 0
  1. # Запрос в базу ищу по ссылке
  2. contact_list = AllPublication.objects.filter(link_publication = ['t.me/BESTPER/22663', 'https://t.me/BESTPER/22638'])
  3.  
  4. # Модель
  5. class AllPublication(models.Model):
  6.     source_publication = models.CharField('Источник', max_length=100)
  7.     name_publication = models.CharField('Название', max_length=100)
  8.     view_publication = models.IntegerField('Просмотры')
  9.     like_publication = models.IntegerField('Лайки')
  10.     repost_publication = models.IntegerField('Репосты')
  11.     comment_publication = models.IntegerField('Комментарии')
  12.     date_publication = models.DateField('Дата публикации')
  13.     link_publication = models.CharField('Ссылка', max_length=100, unique = True)
  14.  
Advertisement
Add Comment
Please, Sign In to add comment