Don't use from etiquette import
.
This commit is contained in:
parent
d84fc037fe
commit
57f007d595
1 changed files with 3 additions and 3 deletions
|
@ -4,7 +4,7 @@ import math
|
|||
import os
|
||||
import werkzeug.wrappers
|
||||
|
||||
from etiquette import helpers
|
||||
import etiquette
|
||||
|
||||
def _generate_token(length=32):
|
||||
randbytes = os.urandom(math.ceil(length / 2))
|
||||
|
@ -77,7 +77,7 @@ class Session:
|
|||
self.user = user
|
||||
self.ip_address = request.remote_addr
|
||||
self.user_agent = request.headers.get('User-Agent', '')
|
||||
self.last_activity = int(helpers.now())
|
||||
self.last_activity = int(etiquette.helpers.now())
|
||||
|
||||
def maintain(self):
|
||||
self.last_activity = int(helpers.now())
|
||||
self.last_activity = int(etiquette.helpers.now())
|
||||
|
|
Loading…
Reference in a new issue