mirror of
https://github.com/vbatts/imgsrv.git
synced 2025-07-29 02:10:29 +00:00
* more logging on upload failures.
* adding an error page * trying to fix the tag cloud
This commit is contained in:
parent
1c14a76877
commit
d4824ad6a2
4 changed files with 68 additions and 18 deletions
|
@ -93,8 +93,13 @@ func (u Util) GetExtensions() (kp []types.IdCount, err error) {
|
|||
if _, err := u.Gfs.Find(nil).MapReduce(job, &kp); err != nil {
|
||||
return kp, err
|
||||
}
|
||||
// Less than effecient, but cleanest place to put this
|
||||
for i := range kp {
|
||||
kp[i].Root = "ext" // for extension. Maps to /ext/
|
||||
}
|
||||
return kp, nil
|
||||
}
|
||||
|
||||
/*
|
||||
get a list of keywords and their frequency count
|
||||
*/
|
||||
|
@ -126,5 +131,9 @@ func (u Util) GetKeywords() (kp []types.IdCount, err error) {
|
|||
if _, err := u.Gfs.Find(nil).MapReduce(job, &kp); err != nil {
|
||||
return kp, err
|
||||
}
|
||||
// Less than effecient, but cleanest place to put this
|
||||
for i := range kp {
|
||||
kp[i].Root = "k" // for keyword. Maps to /k/
|
||||
}
|
||||
return kp, nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue