HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux spn-python 5.15.0-89-generic #99-Ubuntu SMP Mon Oct 30 20:42:41 UTC 2023 x86_64
User: arjun (1000)
PHP: 8.1.2-1ubuntu2.20
Disabled: NONE
Upload Files
File: //proc/thread-self/root/home/arjun/projects/buyercall/buyercall/blueprints/appointments/views.py
import datetime
import logging as log
import traceback
from flask import (
    Blueprint,
    flash,
    make_response,
    render_template,
    g, request, redirect, url_for, current_app)
from flask_login import login_required, current_user
from sqlalchemy import func, and_
from sqlalchemy.orm import contains_eager
from buyercall.extensions import db
from datetime import timedelta
from buyercall.blueprints.appointments.models import Appointment, AppointmentSlot

appointments = Blueprint('appointments', __name__, template_folder='templates')


@login_required
@appointments.route('/appointments')
def appointment():
    """ Placeholder for first appointment view function. Please use this function if it's
    first appointment function.
    """
    pass
    return render_template('appointment.jinja2')