You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package export
|
|
|
|
import (
|
|
"hugobot/feeds"
|
|
"hugobot/posts"
|
|
"strings"
|
|
)
|
|
|
|
func BulletinExport(exp Map, feed feeds.Feed, post posts.Post) error {
|
|
|
|
bulletinInfo := strings.Split(feed.Section, "/")
|
|
|
|
if bulletinInfo[0] == "bulletin" {
|
|
exp["bulletin_type"] = bulletinInfo[1]
|
|
}
|
|
return nil
|
|
}
|