Currently we have some license issues. We are working on it.

Commit 455bab78 authored by zauberstuhl's avatar zauberstuhl
Browse files

Fix badges count and no stats on index page

parent 47ddf6cb
......@@ -51,6 +51,7 @@
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
{{if .UserOK}}
<span class="navbar-text">
Checkins {{.CurrentUser.TotalCheckins}}&nbsp;
</span>
......@@ -63,6 +64,7 @@
<span class="navbar-text ml-auto">
Database checkins {{lenLoc .CurrentUser.Locations}} updated at {{.CurrentUser.UpdatedAt.Format "2006-01-02"}}
</span>
{{end}}
<ul class="navbar-nav ml-auto">
{{if or (not .CurrentUser.Locations) (not .UserOK)}}
<li class="nav-item">
......
......@@ -86,7 +86,7 @@ func info_worker(user *User) error {
return db.Model(&User{}).Where("id = ?", user.ID).
Updates(map[string]interface{}{
"updated_at": time.Now(),
"total_badges": stats.Total_beers,
"total_badges": stats.Total_badges,
"total_friends": stats.Total_friends,
"total_checkins": stats.Total_checkins,
"total_beers": stats.Total_beers,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment