Compare commits

..

No commits in common. "c04932383e4e5ff2093cf01b51ffb4bfbe00eb6a" and "519dc8202365859af7b557f1d6add9a95b468a18" have entirely different histories.

2 changed files with 2 additions and 10 deletions

View File

@ -37,12 +37,6 @@ func getCredentials() (string, string, error) {
return strings.TrimSpace(user), strings.TrimSpace(pass), nil return strings.TrimSpace(user), strings.TrimSpace(pass), nil
} }
func reverseOrder(bs *[]types.Briefing) {
for i, j := 0, len(*bs)-1; i < j; i, j = i+1, j-1 {
(*bs)[i], (*bs)[j] = (*bs)[j], (*bs)[i]
}
}
func Open(dbName string) (*DB, error) { func Open(dbName string) (*DB, error) {
var err error var err error
db := new(DB) db := new(DB)
@ -114,7 +108,6 @@ func (db *DB) ReadAll() (*[]types.Briefing, error) {
bs = append(bs, *b) bs = append(bs, *b)
} }
reverseOrder(&bs)
return &bs, nil return &bs, nil
} }
@ -152,6 +145,5 @@ func (db *DB) ReadByName(name string) (*[]types.Briefing, error) {
bs = append(bs, *b) bs = append(bs, *b)
} }
reverseOrder(&bs)
return &bs, nil return &bs, nil
} }

View File

@ -32,12 +32,12 @@
<table> <table>
<thead> <thead>
<tr> <tr>
<th colspan="2">Unterweiser</th> <th colspan="2">Name Unterweiser</th>
<th>Datum</th> <th>Datum</th>
<th>Uhrzeit</th> <th>Uhrzeit</th>
<th>Stand</th> <th>Stand</th>
<th>Ort</th> <th>Ort</th>
<th colspan="2">Teilnehmer</th> <th colspan="2">Name Teilnehmer</th>
<th>Firma</th> <th>Firma</th>
</tr> </tr>
</thead> </thead>