mirror of
https://github.com/marcogll/talia_bot.git
synced 2026-01-13 13:25:19 +00:00
ajsutes codex
This commit is contained in:
@@ -4,7 +4,7 @@ import datetime
|
||||
from google.oauth2 import service_account
|
||||
from googleapiclient.discovery import build
|
||||
from googleapiclient.errors import HttpError
|
||||
from app.config import GOOGLE_SERVICE_ACCOUNT_FILE, CALENDAR_ID
|
||||
from config import GOOGLE_SERVICE_ACCOUNT_FILE, CALENDAR_ID
|
||||
|
||||
# Set up the Calendar API
|
||||
SCOPES = ["https://www.googleapis.com/auth/calendar"]
|
||||
|
||||
@@ -29,7 +29,7 @@ from modules.aprobaciones import view_pending, handle_approval_action
|
||||
from modules.servicios import get_service_info
|
||||
from modules.admin import get_system_status
|
||||
from modules.print import print_handler
|
||||
from app.scheduler import schedule_daily_summary
|
||||
from scheduler import schedule_daily_summary
|
||||
|
||||
# Enable logging
|
||||
logging.basicConfig(
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
|
||||
from telegram import Update
|
||||
from telegram.ext import ContextTypes
|
||||
from ..permissions import is_admin
|
||||
from ..config import TIMEZONE, CALENDAR_ID, N8N_WEBHOOK_URL
|
||||
from permissions import is_admin
|
||||
from config import TIMEZONE, CALENDAR_ID, N8N_WEBHOOK_URL
|
||||
|
||||
async def print_handler(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
|
||||
"""Handles the /print command."""
|
||||
|
||||
@@ -4,8 +4,8 @@ from datetime import time
|
||||
from telegram.ext import ContextTypes
|
||||
import pytz
|
||||
|
||||
from app.config import OWNER_CHAT_ID, TIMEZONE
|
||||
from app.modules.agenda import get_agenda
|
||||
from config import OWNER_CHAT_ID, TIMEZONE
|
||||
from modules.agenda import get_agenda
|
||||
|
||||
# Enable logging
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
Reference in New Issue
Block a user