Callback error with multipage dash app

## Traceback  *(most recent call last)*

* #### File "C:\Users\Hi\Desktop\dash-app-example\apps\login.py", line  *50* , in  `sucess`

user = User.query.filter_by(username=input1).first()

* #### File "C:\Users\Hi\AppData\Local\Programs\Python\Python38\Lib\site-packages\sqlalchemy\orm\query.py", line  *2825* , in  `first`

ret = list(self[0:1])

* #### File "C:\Users\Hi\AppData\Local\Programs\Python\Python38\Lib\site-packages\sqlalchemy\orm\query.py", line  *2617* , in  `__getitem__`

return list(res)

* #### File "C:\Users\Hi\AppData\Local\Programs\Python\Python38\Lib\site-packages\sqlalchemy\orm\query.py", line  *2925* , in  `__iter__`

return self._execute_and_instances(context)

* #### File "C:\Users\Hi\AppData\Local\Programs\Python\Python38\Lib\site-packages\sqlalchemy\orm\query.py", line  *2948* , in  `_execute_and_instances`

result = conn.execute(querycontext.statement, self._params)

* #### File "C:\Users\Hi\AppData\Local\Programs\Python\Python38\Lib\site-packages\sqlalchemy\engine\base.py", line  *948* , in  `execute`

return meth(self, multiparams, params)

* #### File "C:\Users\Hi\AppData\Local\Programs\Python\Python38\Lib\site-packages\sqlalchemy\sql\elements.py", line  *269* , in  `_execute_on_connection`

return connection._execute_clauseelement(self, multiparams, params)

* #### File "C:\Users\Hi\AppData\Local\Programs\Python\Python38\Lib\site-packages\sqlalchemy\engine\base.py", line  *1055* , in  `_execute_clauseelement`

ret = self._execute_context(

* #### File "C:\Users\Hi\AppData\Local\Programs\Python\Python38\Lib\site-packages\sqlalchemy\engine\base.py", line  *1147* , in  `_execute_context`

fn(self, cursor, statement, parameters,

* #### File "C:\Users\Hi\AppData\Local\Programs\Python\Python38\Lib\site-packages\sqlalchemy\events.py", line  *624* , in  `wrap_before_cursor_execute`

orig_fn(conn, cursor, statement,

* #### File "C:\Users\Hi\AppData\Local\Programs\Python\Python38\Lib\site-packages\flask_sqlalchemy\__init__.py", line  *252* , in  `before_cursor_execute`

context._query_start_time = _timer()

> TypeError: 'float' obj

def display_page(pathname):
if pathname == ‘/’ or pathname==’/welcome’:
return welcome.layout
elif pathname == ‘/dashboard’:
return dashboard.layout
elif pathname == ‘/live_twitter_sentiment’:
return live_twitter_sentiment.layout
elif pathname == ‘/login’:
return login.layout
elif pathname == ‘/success’:
if current_user.is_authenticated:
return success.layout
pathname=’/comments’
if pathname==’/comments’:
return comments.layout
else:
return login_fd.layout
elif pathname == ‘/logout’:
if current_user.is_authenticated:
logout_user()
return logout.layout
else:
return logout.layout
else:
return ‘404’