1
0
mirror of https://github.com/hrfee/jfa-go.git synced 2024-12-29 12:30:11 +00:00

Compare commits

..

2 Commits

2 changed files with 4 additions and 2 deletions

4
api.go
View File

@ -454,7 +454,9 @@ func (app *appContext) GetInvites(gc *gin.Context) {
var address string var address string
if app.config.Section("ui").Key("jellyfin_login").MustBool(false) { if app.config.Section("ui").Key("jellyfin_login").MustBool(false) {
app.storage.loadEmails() app.storage.loadEmails()
address = app.storage.emails[gc.GetString("jfId")].(string) if addr := app.storage.emails[gc.GetString("jfId")]; addr != nil {
address = addr.(string)
}
} else { } else {
address = app.config.Section("ui").Key("email").String() address = app.config.Section("ui").Key("email").String()
} }

View File

@ -46,7 +46,7 @@ for bsv in [d for d in local_path.iterdir() if "bs" in d.name]:
with open(css[i], "w") as f: with open(css[i], "w") as f:
f.write( f.write(
sass.compile( sass.compile(
filename=str(scss[i].resolve()), output_style="expanded", precision=6 filename=str(scss[i].resolve()), output_style="expanded", precision=6, omit_source_map_url=True
) )
) )
if css[i].exists(): if css[i].exists():