Skip to content

Commit

Permalink
#7, "dynamic" thumbnail scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
king-millez committed Jan 17, 2021
1 parent 52183a9 commit 0bc68d2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion legistream/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ def gen_context():
return {
'dropdown_list': statuscheck.check_statuses(),
'live_parls': grammarfy(live_parls),
'stream_amount': len(live_parls),
}

def home(request):
Expand All @@ -36,6 +35,7 @@ def act(request):
context['stream_urls'] = act.act_urls
context['parl'] = act.parl_title
context['title'] = 'ACT Parliament'
context['stream_amount'] = len(context['stream_urls'])

return(render(request, 'legistream/stream_page.html', context=context))

Expand All @@ -45,6 +45,7 @@ def federal(request):
context['stream_urls'] = fed.fed_urls
context['parl'] = fed.parl_title
context['title'] = 'Federal Parliament'
context['stream_amount'] = len(context['stream_urls'])

return(render(request, 'legistream/stream_page.html', context=context))

Expand All @@ -54,6 +55,7 @@ def nsw(request):
context['stream_urls'] = nsw.nsw_urls
context['parl'] = nsw.parl_title
context['title'] = 'NSW Parliament'
context['stream_amount'] = len(context['stream_urls'])

return(render(request, 'legistream/stream_page.html', context=context))

Expand All @@ -63,6 +65,7 @@ def nt(request):
context['stream_urls'] = nt.nt_urls
context['parl'] = nt.parl_title
context['title'] = 'NT Parliament'
context['stream_amount'] = len(context['stream_urls'])

return(render(request, 'legistream/stream_page.html', context=context))

Expand All @@ -72,6 +75,7 @@ def qld(request):
context['stream_urls'] = qld.qld_urls
context['parl'] = qld.parl_title
context['title'] = 'QLD Parliament'
context['stream_amount'] = len(context['stream_urls'])

return(render(request, 'legistream/stream_page.html', context=context))

Expand Down

0 comments on commit 0bc68d2

Please sign in to comment.