Fixed bugs and added hourly forecast

This commit is contained in:
2025-07-31 16:06:57 +02:00
parent 82f67515e7
commit f44c671052
12 changed files with 383 additions and 129 deletions

View File

@@ -12,7 +12,7 @@ import (
func GetStatistics(cityName string, statDB *types.StatDB) (types.StatResult, error) {
// Check whether there are sufficient and updated records for the given location
if statDB.IsKeyInvalid(cityName) {
return types.StatResult{}, errors.New("Insufficient or outdated data to perform statistical analysis")
return types.StatResult{}, errors.New("insufficient or outdated data to perform statistical analysis")
}
extractTemps := func(weatherArr []types.Weather) ([]float64, error) {