@app.get("/")
async def read_root():
...
app.mount('/', flet_fastapi.app(root_main))
<div id="vueapp1"></div>
<div id="vueapp2"></div>
<div id="vueapp3"></div>
Vue.createApp(VueApp).mount('#vueapp1')
...
callback_query.message.answer
conditions = [
{
'min_lvl': 0,
'max_lvl': 10,
'exp': 10000
},
{
'min_lvl': 10,
'max_lvl': 20,
'exp': 20000
},
]
for _cond in conditions:
if lvl < _cond['max_lvl'] and lvl >= _cond['min_lvl'] and exp % _cond['exp'] == 0:
cursor.execute(f"UPDATE users SET lvl = lvl + 1 WHERE id = {message.author.id}")
connection.commit()
break