More fixes to account checker, and test command

This commit is contained in:
Joan
2023-07-04 23:01:31 +02:00
parent addf9302c6
commit 5e4b8725cb
3 changed files with 13 additions and 5 deletions

View File

@@ -387,7 +387,8 @@ async def status_command(update: Update, context: ContextTypes.DEFAULT_TYPE) ->
async def test_command(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
telegram_user_id = helpers.get_telegram_user_id(update)
telegram_user_name = helpers.get_telegram_user_name(update)
if not walladb.is_user_valid(telegram_user_id):
#if not walladb.is_user_valid(telegram_user_id):
if walladb.get_user(telegram_user_id) == "NoName":
until = helpers.get_date_ahead(7)
walladb.add_test_user(telegram_user_id, telegram_user_name, until)
message = f"Periodo de prueba activado hasta el {helpers.get_spanish_date(until)}."