On Wed, May 20, 2015 at 3:00 PM, Emerson Luiz <elui...@gmail.com> wrote: > When i don't have 0 or 1 i need show some thing... > > Let me explain the situation... > > 0 = Show when calls is RING > 1 = Show when the calls is ANSWER > > When i don't have calls, i need show some thing . I have an python script > making insert in real time all calls statement in mysql > > Thanks >
If you only pass 0 or 1 as the value, then it will never fall in to your else block since it will match one of the earlier if/elif blocks. What value are you passing that isn't 1 or 0, so that it will not match one of the first four blocks? Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com. To post to this group, send email to django-users@googlegroups.com. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1JqEAyuiQRzZBN1WPf5AyBJr-s%2BsXa1vgoFLcLZ%2BXmbPA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.