mirror of
https://github.com/postgres/pgweb.git
synced 2025-08-06 09:57:57 +00:00

This fixes the style issues introduced in the patches for the new release notes styles. Clearly a broken verification hook somewhere.
9 lines
257 B
Python
9 lines
257 B
Python
from django.db import connection
|
|
|
|
|
|
def exec_to_dict(query, params=None):
|
|
curs = connection.cursor()
|
|
curs.execute(query, params)
|
|
columns = [col[0] for col in curs.description]
|
|
return [dict(list(zip(columns, row))) for row in curs.fetchall()]
|