Ran black on sources
This commit is contained in:
parent
7a8d5853af
commit
ed92f9a177
2 changed files with 5 additions and 2 deletions
|
|
@ -507,7 +507,8 @@ Command {self} has no defined `func()` - showing on-command variables:
|
||||||
"""
|
"""
|
||||||
if self.session:
|
if self.session:
|
||||||
return self.session.protocol_flags.get(
|
return self.session.protocol_flags.get(
|
||||||
"SCREENWIDTH", {0: settings.CLIENT_DEFAULT_WIDTH})[0]
|
"SCREENWIDTH", {0: settings.CLIENT_DEFAULT_WIDTH}
|
||||||
|
)[0]
|
||||||
return settings.CLIENT_DEFAULT_WIDTH
|
return settings.CLIENT_DEFAULT_WIDTH
|
||||||
|
|
||||||
def styled_table(self, *args, **kwargs):
|
def styled_table(self, *args, **kwargs):
|
||||||
|
|
|
||||||
|
|
@ -64,7 +64,9 @@ class SharedLoginMiddleware(object):
|
||||||
|
|
||||||
if csession.get("webclient_authenticated_uid", None):
|
if csession.get("webclient_authenticated_uid", None):
|
||||||
# set a nonce to prevent the webclient from erasing the webclient_authenticated_uid value
|
# set a nonce to prevent the webclient from erasing the webclient_authenticated_uid value
|
||||||
csession["webclient_authenticated_nonce"] = csession.get("webclient_authenticated_nonce", 0) + 1
|
csession["webclient_authenticated_nonce"] = (
|
||||||
|
csession.get("webclient_authenticated_nonce", 0) + 1
|
||||||
|
)
|
||||||
# wrap around to prevent integer overflows
|
# wrap around to prevent integer overflows
|
||||||
if csession["webclient_authenticated_nonce"] > 32:
|
if csession["webclient_authenticated_nonce"] > 32:
|
||||||
csession["webclient_authenticated_nonce"] = 0
|
csession["webclient_authenticated_nonce"] = 0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue