@app.get('/qr/{query}', response_class=HTMLResponse)
async def read_item(request: Request, query: str):
    fio = (((((((query[0] + ('*' * int(query[1]))) + ' ') + query[2]) + ('*' * int(query[3]))) + ' ') + query[4]) + ('*' * int(query[5])))
    birthday = ((((query[6:8] + '.') + query[8:10]) + '.') + query[10:14])
    expired = ((((query[14:16] + '.') + query[16:18]) + '.') + query[18:22])
    return templates.TemplateResponse('qr.j2.html', {'request': request, 'fio': fio, 'birthday': birthday, 'expired': expired})
@app.get('/qr/{query}', response_class=HTMLResponse)
async def read_item(request: Request, query: str):
    fio = (((((((query[0] + ('*' * int(query[1]))) + ' ') + query[2]) + ('*' * int(query[3]))) + ' ') + query[4]) + ('*' * int(query[5])))
    birthday = ((((query[6:8] + '.') + query[8:10]) + '.') + query[10:14])
    expired = ((((query[14:16] + '.') + query[16:18]) + '.') + query[18:22])
    return templates.TemplateResponse('qr.j2.html', {'request': request, 'fio': fio, 'birthday': birthday, 'expired': expired})