# from django.db import connection
# from contextlib import closing
#
#
# def dictfetchall(cursor):
#     columns = [col[0] for col in cursor.description]
#     return [
#         dict(zip(columns, row)) for row in cursor.fetchall()
#     ]
#
#
# def dictfetchone(cursor):
#     row = cursor.fetchone()
#     if row is None:
#         return False
#     columns = [col[0] for col in cursor.description]
#     return dict(zip(columns, row))
#
#
# def get_category_by_id(pk):
#     with()
1a52590f535f46b50acbf20adb36d046106773ec
# from django.db import connection
# from contextlib import closing
#
#
# def dictfetchall(cursor):
#     columns = [col[0] for col in cursor.description]
#     return [
#         dict(zip(columns, row)) for row in cursor.fetchall()
#     ]
#
#
# def dictfetchone(cursor):
#     row = cursor.fetchone()
#     if row is None:
#         return False
#     columns = [col[0] for col in cursor.description]
#     return dict(zip(columns, row))
#
#
# def get_category_by_id(pk):
#     with()