Removed the now-unused SqlQuery from the Mia core application.

This commit is contained in:
依瑪貓 2020-07-18 23:43:31 +08:00
parent b8eb78cc9f
commit 1cd64955a3
2 changed files with 1 additions and 21 deletions

View File

@ -19,7 +19,6 @@
""" """
import re import re
from datetime import timedelta
from django.db import connection from django.db import connection
from django.db.models import Sum, Case, When, F, Q 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 import settings
from mia_core.digest_auth import digest_login_required from mia_core.digest_auth import digest_login_required
from mia_core.period import Period from mia_core.period import Period
from mia_core.utils import Pagination, SqlQuery from mia_core.utils import Pagination
@require_GET @require_GET

View File

@ -455,22 +455,3 @@ class PaginationException(Exception):
def __init__(self, url): def __init__(self, url):
self.url = 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