make removeEmptyString fn as helper fn
This commit is contained in:
parent
bc090190fc
commit
313574df19
1 changed files with 1 additions and 3 deletions
|
|
@ -26,6 +26,7 @@ from .helpers import (
|
||||||
get_css_vendored,
|
get_css_vendored,
|
||||||
get_js_vendored,
|
get_js_vendored,
|
||||||
get_valid_extensions,
|
get_valid_extensions,
|
||||||
|
removeEmptyString,
|
||||||
template_renderer,
|
template_renderer,
|
||||||
url_for_vendored,
|
url_for_vendored,
|
||||||
)
|
)
|
||||||
|
|
@ -113,9 +114,6 @@ def check_settings(app: FastAPI):
|
||||||
@app.on_event("startup")
|
@app.on_event("startup")
|
||||||
async def check_settings_admin():
|
async def check_settings_admin():
|
||||||
|
|
||||||
def removeEmptyString(arr):
|
|
||||||
return list(filter(None, arr))
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
admin_set = await get_admin_settings()
|
admin_set = await get_admin_settings()
|
||||||
if admin_set :
|
if admin_set :
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue