Beispiel #1
0
def downloads(request, cycle):

    if not is_valid_four_digit_string_cycle(cycle):
        # should redirect, but for now:
        raise Http404

    other_year = None
    if cycle == '2016':
        other_year = '2014'
    elif cycle == '2014':
        other_year = '2016'
    cycle_list = [
        cycle_fake(cycle, "/download-index/%s/" % cycle),
        cycle_fake(other_year, "/download-index/%s/" % other_year)
    ]

    title = "Bulk Downloads"
    update_time = get_update_time(BULK_EXPORT_KEY)

    return render_to_response('datapages/downloads.html', {
        'title': title,
        'cycle': cycle,
        'cycle_list': cycle_list,
        'update_time': update_time,
    },
                              context_instance=RequestContext(request))
Beispiel #2
0
def downloads(request, cycle):
    
    if not is_valid_four_digit_string_cycle(cycle):
        # should redirect, but for now:
        raise Http404

    other_year = None
    if cycle == '2016':
        other_year = '2014'
    elif cycle == '2014':
        other_year = '2016'
    cycle_list = [cycle_fake(cycle, "/download-index/%s/" % cycle), cycle_fake(other_year, "/download-index/%s/" % other_year)]
    
    title="Bulk Downloads" 
    update_time = get_update_time(BULK_EXPORT_KEY)

    return render_to_response('datapages/downloads.html',
        {
        'title':title,
        'cycle':cycle,
        'cycle_list':cycle_list,
        'update_time':update_time,
        }, 
        context_instance=RequestContext(request)
    )
Beispiel #3
0
def downloads(request):
    
    title="Bulk Downloads" 
    update_time = get_update_time(BULK_EXPORT_KEY)

    return render_to_response('datapages/downloads.html',
        {
        'title':title,
        'update_time':update_time,
        }, 
        context_instance=RequestContext(request)
    )
Beispiel #4
0
def downloads(request):
    
    title="Bulk Downloads" 
    update_time = get_update_time(BULK_EXPORT_KEY)

    return render_to_response('datapages/downloads.html',
        {
        'title':title,
        'update_time':update_time,
        }, 
        context_instance=RequestContext(request)
    )
Beispiel #5
0
def timestamp_export():
    most_recent_scrape = get_update_time(BULK_EXPORT_KEY)
    return { 'most_recent_scrape': most_recent_scrape }
Beispiel #6
0
def timestamp_committees():
    most_recent_scrape = get_update_time(COMMITTEES_SCRAPE_KEY)
    return { 'most_recent_scrape': most_recent_scrape }
Beispiel #7
0
def timestamp_filings():
    most_recent_scrape = get_update_time(FILING_SCRAPE_KEY)
    return { 'most_recent_scrape': most_recent_scrape }