Fixed variable missing inside an IF statement
This commit is contained in:
@@ -58,8 +58,8 @@ async def menu_click_handler(update: Update, context: CallbackContext):
|
||||
query = update.callback_query
|
||||
if query.data == 'add':
|
||||
valid = False
|
||||
if walladb.is_user_testing(telegram_user_id):
|
||||
number_of_products = walladb.count_user_products(telegram_user_id)
|
||||
if walladb.is_user_testing(telegram_user_id):
|
||||
valid = True
|
||||
if number_of_products >= 5:
|
||||
message = "Ya tienes 5 productos en seguimiento. Con premium puedes tener hasta 20."
|
||||
|
||||
Reference in New Issue
Block a user