|
@@ -686,9 +686,7 @@ async def history_input(token: str = Depends(oauth2_scheme)):
|
|
@app.post("/history_input_noAuth")
|
|
@app.post("/history_input_noAuth")
|
|
async def history_input_noAuth():
|
|
async def history_input_noAuth():
|
|
db_check()
|
|
db_check()
|
|
- user_id = get_user_id(token)
|
|
|
|
- user_obj = first(db.query('SELECT * FROM users where id ="'+str(user_id)+'"'))
|
|
|
|
- statement = 'SELECT * FROM history_input WHERE user_id="'+str(user_id)+'" ORDER BY timestamp DESC LIMIT 50'
|
|
|
|
|
|
+ statement = 'SELECT * FROM history_input ORDER BY timestamp DESC LIMIT 50'
|
|
|
|
|
|
logs = []
|
|
logs = []
|
|
for row in db.query(statement):
|
|
for row in db.query(statement):
|