Answer the question
In order to leave comments, you need to log in
How to check user for value in string?
There is such business:
I need to check users on value in a column. There may be several, or maybe one.
I tried many times to implement this, but it only turned out like this:
adms = ''
admins = db.db_admin()
for admin in admins:
admin = str(admin[2])
adms += admin
subs = ''
subscribers = db.db_subs()
for sub in subscribers:
sub = str(sub[2])
subs += sub
bans = ''
banned = db.db_bans()
for ban in banned:
ban = str(ban[2])
bans += ban
users = ''
usrs = db.db_users()
for user in usrs:
user = str(user[2])
users += user
actusers = ''
actusrs = db.db_actusers()
print(actusrs)
for actuser in actusrs:
actuser = str(actuser[2])
actusers += actuser
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question