Removed the now-unused SqlQuery from the Mia core application.
This commit is contained in:
parent
b8eb78cc9f
commit
1cd64955a3
@ -19,7 +19,6 @@
|
||||
|
||||
"""
|
||||
import re
|
||||
from datetime import timedelta
|
||||
|
||||
from django.db import connection
|
||||
from django.db.models import Sum, Case, When, F, Q
|
||||
@ -37,7 +36,7 @@ from accounting.utils import ReportUrl
|
||||
from mia import settings
|
||||
from mia_core.digest_auth import digest_login_required
|
||||
from mia_core.period import Period
|
||||
from mia_core.utils import Pagination, SqlQuery
|
||||
from mia_core.utils import Pagination
|
||||
|
||||
|
||||
@require_GET
|
||||
|
@ -455,22 +455,3 @@ class PaginationException(Exception):
|
||||
|
||||
def __init__(self, url):
|
||||
self.url = url
|
||||
|
||||
|
||||
class SqlQuery:
|
||||
"""A SQL query statement with its parameters.
|
||||
|
||||
Args:
|
||||
sql (str): The SQL statement.
|
||||
params (list[str]): the parameters.
|
||||
|
||||
Attributes:
|
||||
sql (str): The SQL statement.
|
||||
params (list[str]): the parameters.
|
||||
"""
|
||||
sql = ""
|
||||
params = []
|
||||
|
||||
def __init__(self, sql, params):
|
||||
self.sql = sql
|
||||
self.params = params
|
||||
|
Loading…
Reference in New Issue
Block a user