Fix formatting
This commit is contained in:
@@ -58,7 +58,9 @@ class Session(models.Model):
|
||||
|
||||
@property
|
||||
def is_currently_active(self):
|
||||
return timezone.now() - self.last_seen < timezone.timedelta(milliseconds=settings.SCRIPT_HEARTBEAT_FREQUENCY * 2)
|
||||
return timezone.now() - self.last_seen < timezone.timedelta(
|
||||
milliseconds=settings.SCRIPT_HEARTBEAT_FREQUENCY * 2
|
||||
)
|
||||
|
||||
@property
|
||||
def duration(self):
|
||||
|
||||
@@ -80,7 +80,9 @@ def ingress_request(
|
||||
association_id_hash.update(str(user_agent).encode("utf-8"))
|
||||
if settings.AGGRESSIVE_HASH_SALTING:
|
||||
association_id_hash.update(str(service.pk).encode("utf-8"))
|
||||
association_id_hash.update(str(timezone.now().date().isoformat()).encode("utf-8"))
|
||||
association_id_hash.update(
|
||||
str(timezone.now().date().isoformat()).encode("utf-8")
|
||||
)
|
||||
session_cache_path = (
|
||||
f"session_association_{service.pk}_{association_id_hash.hexdigest()}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user