Revised the code for PEP8.
This commit is contained in:
parent
5b9ac93ee5
commit
42e444b8c8
@ -79,7 +79,8 @@ class User(models.Model):
|
|||||||
visits = models.PositiveSmallIntegerField(null=True)
|
visits = models.PositiveSmallIntegerField(null=True)
|
||||||
visited_at = models.DateTimeField(null=True, db_column="visited")
|
visited_at = models.DateTimeField(null=True, db_column="visited")
|
||||||
visited_ip = models.GenericIPAddressField(null=True, db_column="ip")
|
visited_ip = models.GenericIPAddressField(null=True, db_column="ip")
|
||||||
visited_host = models.CharField(max_length=128, null=True, db_column="host")
|
visited_host = models.CharField(
|
||||||
|
max_length=128, null=True, db_column="host")
|
||||||
visited_country = models.ForeignKey(
|
visited_country = models.ForeignKey(
|
||||||
Country, on_delete=models.PROTECT, null=True,
|
Country, on_delete=models.PROTECT, null=True,
|
||||||
db_column="ct", to_field="code", related_name="users")
|
db_column="ct", to_field="code", related_name="users")
|
||||||
|
@ -81,8 +81,7 @@ class Period:
|
|||||||
_data_start = None
|
_data_start = None
|
||||||
_data_end = None
|
_data_end = None
|
||||||
|
|
||||||
def __init__(
|
def __init__(self, spec=None, data_start=None, data_end=None):
|
||||||
self, spec = None, data_start = None, data_end = None):
|
|
||||||
self._period = self.Parser(spec)
|
self._period = self.Parser(spec)
|
||||||
self._data_start = data_start
|
self._data_start = data_start
|
||||||
self._data_end = data_end
|
self._data_end = data_end
|
||||||
|
@ -466,6 +466,7 @@ class SqlQuery:
|
|||||||
"""
|
"""
|
||||||
sql = ""
|
sql = ""
|
||||||
params = []
|
params = []
|
||||||
|
|
||||||
def __init__(self, sql, params):
|
def __init__(self, sql, params):
|
||||||
self.sql = sql
|
self.sql = sql
|
||||||
self.params = params
|
self.params = params
|
||||||
|
Loading…
Reference in New Issue
Block a user