Skip to content
This repository has been archived by the owner on Jan 16, 2019. It is now read-only.

Commit

Permalink
remove unnecessary snnipet in views.py
Browse files Browse the repository at this point in the history
  • Loading branch information
davidleeofuibe committed Nov 29, 2016
1 parent 8a75554 commit b0e5d58
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 78 deletions.
30 changes: 0 additions & 30 deletions capstone/SEI/migrations/0002_auto_20161126_1659.py

This file was deleted.

19 changes: 0 additions & 19 deletions capstone/SEI/migrations/0002_auto_20161128_0227.py

This file was deleted.

26 changes: 26 additions & 0 deletions capstone/SEI/migrations/0002_auto_20161128_1610.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2016-11-28 16:10
from __future__ import unicode_literals

from django.db import migrations, models
import django.db.models.deletion


class Migration(migrations.Migration):

dependencies = [
('SEI', '0001_initial'),
]

operations = [
migrations.AlterField(
model_name='project',
name='team',
field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.CASCADE, to='SEI.Team'),
),
migrations.AlterField(
model_name='projectmonth',
name='employee_list',
field=models.ManyToManyField(related_name='do_project_this_month', to='SEI.Employee'),
),
]
20 changes: 0 additions & 20 deletions capstone/SEI/migrations/0003_auto_20161126_1700.py

This file was deleted.

9 changes: 0 additions & 9 deletions capstone/SEI/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,15 +437,6 @@ def get_employee_project(request,employee_id):
five_month_before_date= today - datetime.timedelta(5*365/12)
five_month_before = str(five_month_before_date.year) + '-' + str(five_month_before_date.month) + '-01'
current_month = str(today.year) + '-' + str(today.month) + '-01'
print("pwp"+str(Project.objects.get(id=1).PWP_num))
print("budget"+str(Project.objects.get(id=1).project_budget))
print("description"+str(Project.objects.get(id=1).project_description))
print("iternal"+str(Project.objects.get(id=1).is_internal))
print("client_name"+Project.objects.get(id=1).client_name)
print("start_date"+str(Project.objects.get(id=1).start_date))
print("end_date"+str(Project.objects.get(id=1).end_date))
print("business_manager"+str(Project.objects.get(id=1).business_manager))
#print(Project.objects.get(id=1).team.team_name)
Tasks=EmployeeMonth.objects.filter(employee=employee,project_date__gt=five_month_before,project_date__lte=current_month)
print(len(Tasks))
time_sum={}
Expand Down
Binary file modified capstone/db.sqlite3
Binary file not shown.

0 comments on commit b0e5d58

Please sign in to comment.