Skip to content

Commit

Permalink
Shortened a line of python code
Browse files Browse the repository at this point in the history
  • Loading branch information
hackthehackerman committed May 19, 2016
1 parent 848932d commit 7e9b406
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cnxarchive/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,8 @@ def extras(request):
with psycopg2.connect(settings[config.CONNECTION_STRING]) as db_connection:
with db_connection.cursor() as cursor:
metadata = {
'languages_and_count': _get_available_languages_and_count(cursor),
'languages_and_count': _get_available_languages_and_count(
cursor),
'subjects': list(_get_subject_list(cursor)),
'featuredLinks': _get_featured_links(cursor),
'messages': _get_service_state_messages(cursor),
Expand Down

0 comments on commit 7e9b406

Please sign in to comment.