# Path: ctleweb/projtrack/models.py
# def get_name(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
# def create_auth_token(sender, instance=None, created=False, **kwargs):
# class Department(models.Model):
#     class Meta:
# class Client(models.Model):
#     class Meta:
# class Type(models.Model):
#     class Meta:
# class Semester(models.Model):
#     class Meta:
# class CurrentSemester(models.Model):
#     class Meta:
# class Project(models.Model):
#     class Meta:


import os
from datetime import datetime
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from .models import User, Project, Client, Semester, Department, Type
            return list(Project.objects.filter(semester=sem))
        except TypeError:
            return [Project.objects.filter(semester=sem)]
    except ObjectDoesNotExist:
        return []


def check_user(use):
    try:
        try:
            return list(Project.objects.filter(users=use))
        except TypeError:
            return [Project.objects.filter(users=use)]
    except ObjectDoesNotExist:
        return []


def check_client(cli):
    try:
        try:
            return list(Project.objects.filter(client=cli))
        except TypeError:
            return [Project.objects.filter(client=cli)]
    except ObjectDoesNotExist:
        return []


def check_department(depart):
    try:
        try:

# Path: ctleweb/projtrack/models.py
# def get_name(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
#     def __str__(self):
# def create_auth_token(sender, instance=None, created=False, **kwargs):
# class Department(models.Model):
#     class Meta:
# class Client(models.Model):
#     class Meta:
# class Type(models.Model):
#     class Meta:
# class Semester(models.Model):
#     class Meta:
# class CurrentSemester(models.Model):
#     class Meta:
# class Project(models.Model):
#     class Meta:


# Path: ctleweb/projtrack/report_generator.py
import os
from datetime import datetime
from django.conf import settings
from django.core.exceptions import ObjectDoesNotExist
from .models import User, Project, Client, Semester, Department, Type

            return list(Project.objects.filter(semester=sem))
        except TypeError:
            return [Project.objects.filter(semester=sem)]
    except ObjectDoesNotExist:
        return []


def check_user(use):
    try:
        try:
            return list(Project.objects.filter(users=use))
        except TypeError:
            return [Project.objects.filter(users=use)]
    except ObjectDoesNotExist:
        return []


def check_client(cli):
    try:
        try:
            return list(Project.objects.filter(client=cli))
        except TypeError:
            return [Project.objects.filter(client=cli)]
    except ObjectDoesNotExist:
        return []


def check_department(depart):
    try:
        try:

            cli = Client.objects.filter(department=depart)