Spaces:
Paused
Paused
debug: FILE_RFP_EXCEL_COUNT 1
Browse files- bot_telegram.py +5 -5
bot_telegram.py
CHANGED
|
@@ -18,7 +18,7 @@ BOT_SECRET_PASSWORD = os.getenv("BOT_SECRET_PASSWORD")
|
|
| 18 |
BOT_TOKEN = os.getenv("BOT_TOKEN")
|
| 19 |
BASE_URL = os.getenv("BASE_URL")
|
| 20 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
| 21 |
-
FILE_RFP_EXCEL_COUNT = os.getenv("FILE_RFP_EXCEL_COUNT", "100")
|
| 22 |
# API_USERNAME = os.getenv("API_USERNAME")
|
| 23 |
# API_PASSWORD = os.getenv("API_PASSWORD")
|
| 24 |
|
|
@@ -247,10 +247,10 @@ class TelegramBot:
|
|
| 247 |
f"Excel file does not have 'question' column."
|
| 248 |
)
|
| 249 |
return
|
| 250 |
-
print("debug 1")
|
| 251 |
-
print("FILE_RFP_EXCEL_COUNT: ",FILE_RFP_EXCEL_COUNT)
|
| 252 |
-
print("type: ",type(FILE_RFP_EXCEL_COUNT))
|
| 253 |
-
if df['question'].count() > FILE_RFP_EXCEL_COUNT:
|
| 254 |
await update.message.reply_text(
|
| 255 |
f"❌ Error reading Excel file: {str(e)}\n"
|
| 256 |
f"Excel file have more than {FILE_RFP_EXCEL_COUNT} questions."
|
|
|
|
| 18 |
BOT_TOKEN = os.getenv("BOT_TOKEN")
|
| 19 |
BASE_URL = os.getenv("BASE_URL")
|
| 20 |
HF_TOKEN = os.getenv("HF_TOKEN")
|
| 21 |
+
#FILE_RFP_EXCEL_COUNT = os.getenv("FILE_RFP_EXCEL_COUNT", "100")
|
| 22 |
# API_USERNAME = os.getenv("API_USERNAME")
|
| 23 |
# API_PASSWORD = os.getenv("API_PASSWORD")
|
| 24 |
|
|
|
|
| 247 |
f"Excel file does not have 'question' column."
|
| 248 |
)
|
| 249 |
return
|
| 250 |
+
#print("debug 1")
|
| 251 |
+
#print("FILE_RFP_EXCEL_COUNT: ",FILE_RFP_EXCEL_COUNT)
|
| 252 |
+
#print("type: ",type(FILE_RFP_EXCEL_COUNT))
|
| 253 |
+
if df['question'].count() > 100: #FILE_RFP_EXCEL_COUNT:
|
| 254 |
await update.message.reply_text(
|
| 255 |
f"❌ Error reading Excel file: {str(e)}\n"
|
| 256 |
f"Excel file have more than {FILE_RFP_EXCEL_COUNT} questions."
|