Bots in separate directory now

This commit is contained in:
Eduard Urbach 2017-07-17 22:43:26 +02:00
parent 360f9f9ce2
commit 808a29756d
4 changed files with 6 additions and 5 deletions

View File

@ -40,7 +40,7 @@ func dashboard(ctx *aero.Context) string {
flow.Parallel(func() { flow.Parallel(func() {
forumActivity, _ = arn.GetForumActivityCached() forumActivity, _ = arn.GetForumActivityCached()
}, func() { }, func() {
animeList, err := arn.GetAnimeList(user) animeList, err := arn.GetAnimeList(user.ID)
if err != nil { if err != nil {
return return

View File

@ -27,7 +27,7 @@ func GetStatsByUser(ctx *aero.Context) string {
return ctx.Error(http.StatusNotFound, "User not found", err) return ctx.Error(http.StatusNotFound, "User not found", err)
} }
animeList, err := arn.GetAnimeList(viewUser) animeList, err := arn.GetAnimeList(viewUser.ID)
animeList.PrefetchAnime() animeList.PrefetchAnime()
if err != nil { if err != nil {

View File

@ -112,9 +112,10 @@ component Settings(user *arn.User)
Icon("picture-o") Icon("picture-o")
span Avatar span Avatar
.widget-input .widget-input(data-api="/api/user/" + user.ID)
label(for="AvatarSource") Source: label(for="Avatar.Source") Source:
select.widget-element.action(id="AvatarSource", data-field="AvatarSource", value="Gravatar", data-action="save", data-trigger="change") select.widget-element.action(id="Avatar.Source", data-field="Avatar.Source", value=user.Avatar.Source, data-action="save", data-trigger="change")
option(value="") Automatic
option(value="Gravatar") Gravatar option(value="Gravatar") Gravatar
if "Gravatar" == "Gravatar" if "Gravatar" == "Gravatar"