Revize 6ad54e2e
Přidáno uživatelem Matěj Zeman před více než 2 roky(ů)
server/sql_app/api/licenses_web.py | ||
---|---|---|
60 | 60 |
"user": current_user}) |
61 | 61 |
|
62 | 62 |
@licenses_web.post("/licenses-web") |
63 |
def create_license(name: str = Form(...), lic_id: str = Form(...), expdate: Optional[date] = Form(None),
|
|
63 |
def create_license(name: Optional[str] = Form(""), lic_id: str = Form(...), expdate: Optional[date] = Form(None),
|
|
64 | 64 |
db: Session = Depends(get_db), Authorize: AuthJWT = Depends()): |
65 | 65 |
""" |
66 | 66 |
Endpoint called from create license form. Creates new license and redirects to devices-web endpoint |
Také k dispozici: Unified diff
Changed looks of tables with simple css. Added inventory number and comment to Lauterbach devices. Changed connection between lauterbach devices and license.