diff --git a/.env.example b/.env.example index 5445be5..a64bdd5 100644 --- a/.env.example +++ b/.env.example @@ -10,7 +10,7 @@ KIWI_API_KEY_MULTICITY = 'Your secret kiwi api key used for searching Multi-city # DATABASE PATH -DATABASE_PATH = 'database\database.db' +DATABASE_PATH = 'database.db' # USER TYPES - LIST TYPE - INSERT CHAT_ID USERS INTO LIST ADMINISTRATORS = [] diff --git a/README.md b/README.md index fd928b5..2f6a8a8 100644 --- a/README.md +++ b/README.md @@ -50,9 +50,9 @@ Powered by the Kiwi flight API, this bot makes it easy to search for the best de | ----------------- | -------------------------------------------------------- | ---------------------- | | `BOT_TOKEN` | Your Telegram Bot Token | None | | `KIWI_API_KEY_STD`| Your KIWI API key for Oneway and Return flight search | None | - | `KIWI_API_KEY_MULTICITY `| Your KIWI API key for Multicity flight search | None | - | `DATABASE_PATH` | Your database file path | `database\database.db` | - | `ADMINISTRATOR` | Holds a list of telegram chat id's for admin rights | [Integer] | + | `KIWI_API_KEY_MULTICITY `| Your KIWI API key for Multicity flight search | None | + | `DATABASE_PATH` | Your database file path | `database.db` | + | `ADMINISTRATOR` | Holds a list of telegram chat id's for admin rights | [Integer] | ### Database diff --git a/handlers/admin.py b/handlers/admin.py index 5269d1a..3e90ae3 100644 --- a/handlers/admin.py +++ b/handlers/admin.py @@ -4,7 +4,6 @@ from telegram import Update from telegram.ext import ContextTypes from telegram.constants import ChatAction -import json from utils.database import DB from telegram.constants import ParseMode from utils.flight_search import validate_number, is_int_0 @@ -42,7 +41,7 @@ async def admin_dashboard(update: Update, context: ContextTypes.DEFAULT_TYPE): USER DATA πŸ‘« Total Users: {USER_COUNT} -πŸ”” Tolal Flight Alerts: {FA_COUNT} +πŸ”” Total Flight Alerts: {FA_COUNT} JOBS Flight Tracker Job diff --git a/utils/decorators.py b/utils/decorators.py index 204714e..dfda80c 100644 --- a/utils/decorators.py +++ b/utils/decorators.py @@ -83,7 +83,7 @@ async def wrapped(update, context, *args, **kwargs): else: button = single_button( text='πŸ”” Manage flight alerts', callback_data='get_flight_alerts') - return await context.bot.send_message(chat_id=chat_id, text=f'❗Only {file["FT_LIMIT"]} flights alert are allowed to be tracked at this time.', reply_markup=button) + return await context.bot.send_message(chat_id=chat_id, text=f'❗Only {ft_limit} flights alert are allowed to be tracked at this time.', reply_markup=button) else: return await func(update, context, *args, **kwargs) return wrapped