Dec-31-2018, 01:28 AM
I have to store the 2nd value and then add a condition e.g.
if 2nd_value == 'None': online_status='offline' elif 2nd_value == 0 : online_status='Offline' elif 2nd_value == 1 online_status='Online'Here the issue is the query is failing with below code when the value is None .
2nd_value=(ord(records[0][1]))Let me know if any better approach to get my task done .