daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest Feb 13th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. def status_task(message):       #Проверить статус выполнения задания пользователем
  3.     bd = liter(config.database_name)
  4.     c = bd.select_single(message.from_user.id)
  5.     if c[2] == 'NO':
  6.         bd.close()
  7.         count = 'NO'
  8.         return count
  9.     elif c[2] == 'EMPTY' :
  10.         bd.close()
  11.         count = 'EMPTY'
  12.         return count
  13.     else:
  14.         bd.close()
  15.         count = 'YES'
  16.         return count
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top