mirror of
https://github.com/apache/superset.git
synced 2024-09-06 22:07:34 -04:00
fix(useless-self-assignment): correct useless-self-assignment (#7090)
* fix(useless-self-assignment): correct useless-self-assignment * udated code formatting
This commit is contained in:
parent
ebb32101c9
commit
f556da80cb
@ -24,9 +24,7 @@ from superset import db
|
|||||||
|
|
||||||
|
|
||||||
def bootstrap_user_data(username=None, include_perms=False):
|
def bootstrap_user_data(username=None, include_perms=False):
|
||||||
if username:
|
if not username:
|
||||||
username = username
|
|
||||||
else:
|
|
||||||
username = g.user.username
|
username = g.user.username
|
||||||
|
|
||||||
user = (
|
user = (
|
||||||
|
Loading…
Reference in New Issue
Block a user