Normalize briefing module options and weather stories
This commit is contained in:
@@ -23,7 +23,7 @@ type WeatherStoryModule struct {
|
||||
|
||||
func buildWeatherStoryModule(ctx ModuleContext, _ any) (*module.Output, error) {
|
||||
story := ctx.Collected.WeatherStory
|
||||
if story == nil {
|
||||
if story == nil || !story.HasUsableContent() {
|
||||
return nil, nil
|
||||
}
|
||||
period := timeutil.Period{Start: story.StartTime, End: story.EndTime}
|
||||
|
||||
Reference in New Issue
Block a user