mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-28 16:45:32 +00:00
BUGFIX: no more empty array elements
This commit is contained in:
@@ -33,10 +33,8 @@ func YearView(year int, lib *xmlmodels.Library) (*YearVM, error) {
|
||||
|
||||
lib.Issues.Lock()
|
||||
for _, issue := range lib.Issues.Array {
|
||||
log.Printf("Issue: %v", issue)
|
||||
y := issue.Datum.When.Year
|
||||
if y == 0 {
|
||||
log.Println("Issue has no year: ", issue.String())
|
||||
}
|
||||
years[y] = true
|
||||
if y == year {
|
||||
functions.MapArrayInsert(issues, issue.Datum.When.Month, issue)
|
||||
|
||||
Reference in New Issue
Block a user