Loading sopds_web_backend/__pycache__/views.cpython-35.pyc +22 B (7.12 KiB) File changed.No diff preview for this file type. View original file View changed file sopds_web_backend/views.py +3 −2 Original line number Diff line number Diff line Loading @@ -26,7 +26,8 @@ def sopds_processor(request): random_id = randint(1,Counter.objects.get_counter(models.counter_allbooks)) try: random_book = Book.objects.get(id=random_id) #random_book = Book.objects.get(id=random_id) random_book = Book.objects.all()[random_id-1:random_id][0] except Book.DoesNotExist: random_book= None Loading Loading
sopds_web_backend/__pycache__/views.cpython-35.pyc +22 B (7.12 KiB) File changed.No diff preview for this file type. View original file View changed file
sopds_web_backend/views.py +3 −2 Original line number Diff line number Diff line Loading @@ -26,7 +26,8 @@ def sopds_processor(request): random_id = randint(1,Counter.objects.get_counter(models.counter_allbooks)) try: random_book = Book.objects.get(id=random_id) #random_book = Book.objects.get(id=random_id) random_book = Book.objects.all()[random_id-1:random_id][0] except Book.DoesNotExist: random_book= None Loading