updated s3_key name to icon_hash
This commit is contained in:
parent
e308718eb2
commit
33bd0a221e
8 changed files with 31 additions and 31 deletions
|
|
@ -31,11 +31,11 @@ func buildEntry(host HostRow, iconsDir string, logWriter *LogWriter, stats *Stat
|
|||
IframeOk: host.IframeAllowed,
|
||||
}
|
||||
|
||||
if host.BestIconS3Key == "" {
|
||||
if host.BestIconHash == "" {
|
||||
return entry
|
||||
}
|
||||
|
||||
encoded, w, h, convertErr := safeConvert(host.BestIconS3Key, iconsDir)
|
||||
encoded, w, h, convertErr := safeConvert(host.BestIconHash, iconsDir)
|
||||
if convertErr != "" {
|
||||
stats.ConvertErrors.Add(1)
|
||||
logLine := fmt.Sprintf("CONVERT_ERROR: %s %s", host.Hostname, convertErr)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue