# Path: eff_site/eff/models.py



import sys
import os
from datetime import datetime, date
from eff_site.eff.models import UserProfile
from django.template.loader import render_to_string
from dateutil.relativedelta import relativedelta, MO
# -*- coding: utf-8 *-*
# This script call a view of eff, this view send an email each user with
# receive report email in True, and not is a user client

path = os.path.normpath(os.path.join(os.path.dirname(__file__), '..', '..'))
sys.path.insert(1, path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'eff_site.settings'



DAY_OF_WEEK = {
    0: 'Monday',
    1: 'Tuesday',
    2: 'Wednesday',
    3: 'Thursday',
    4: 'Friday',
    5: 'Saturday',
    6: 'Sunday'}

# Set the day of a week to send emails
SEND_DAY = 0


def hour_report_last_week():

# Path: eff_site/eff/models.py



# Path: eff_site/scripts/send_reports.py
import sys
import os
from datetime import datetime, date
from eff_site.eff.models import UserProfile
from django.template.loader import render_to_string
from dateutil.relativedelta import relativedelta, MO

# -*- coding: utf-8 *-*
# This script call a view of eff, this view send an email each user with
# receive report email in True, and not is a user client

path = os.path.normpath(os.path.join(os.path.dirname(__file__), '..', '..'))
sys.path.insert(1, path)
os.environ['DJANGO_SETTINGS_MODULE'] = 'eff_site.settings'



DAY_OF_WEEK = {
    0: 'Monday',
    1: 'Tuesday',
    2: 'Wednesday',
    3: 'Thursday',
    4: 'Friday',
    5: 'Saturday',
    6: 'Sunday'}

# Set the day of a week to send emails
SEND_DAY = 0


def hour_report_last_week():

    userprofiles = UserProfile.objects.filter(