Skip to content

Commit

Permalink
Remove hardcoding from non-billable snippet fetch (#835)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jkrzy authored and tbaxter-18f committed Oct 11, 2018
1 parent f3d9dec commit 57c0743
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tock/hours/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
from .models import (Project, ReportingPeriod, Targets, Timecard, TimecardNote,
TimecardObject, TimecardPrefillData)

NON_BILLABLE_PROJECT_IDS = [2, 669,]


class DashboardReportsList(PermissionMixin, ListView):
template_name = 'hours/dashboard_list.html'
Expand Down Expand Up @@ -507,7 +505,7 @@ def general_snippets_only_timecard_list(request):
Stream all timecard data that is for General and has a snippet.
"""
objects = TimecardObject.objects.filter(
project__id__in=NON_BILLABLE_PROJECT_IDS,
project__accounting_code__billable=False,
notes__isnull=False
)
queryset = get_timecards(objects, request.GET)
Expand Down

0 comments on commit 57c0743

Please sign in to comment.