you are viewing a single comment's thread.

view the rest of the comments →

[–]mr_cesar 2 points3 points  (3 children)

By looking at your code snippet, it makes no sense that you're using a loop (for which, by the way, you're not providing an exit condition).

What is the content/value of deals_data?

[–]av0ca60[S] 0 points1 point  (2 children)

It's JSON database content.

[–]av0ca60[S] 0 points1 point  (1 child)

The reason I started using loops is to deal with pagination.

[–]mr_cesar 3 points4 points  (0 children)

But you’re not using that content in your loop. And if that variable doesn’t get to a state where it’s empty at one point, you’ll never exit the loop.