diff options
-rw-r--r-- | PollutometerWebApi.userprefs | 4 | ||||
-rw-r--r-- | PollutometerWebApi/Controllers/ReadingsController.cs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/PollutometerWebApi.userprefs b/PollutometerWebApi.userprefs index 34c119a..8266a5d 100644 --- a/PollutometerWebApi.userprefs +++ b/PollutometerWebApi.userprefs @@ -1,5 +1,5 @@ -<Properties StartupConfiguration="{D19CA1E0-796F-480A-996D-3DFABFC6203F}|Unit Tests"> - <MonoDevelop.Ide.Workbench ActiveDocument="PollutometerWebApi/AqiCalculator.cs"> +<Properties StartupConfiguration="{22C32F4C-0DEB-40EA-9D56-48942CBB2A07}|"> + <MonoDevelop.Ide.Workbench ActiveDocument="PollutometerWebApi/Controllers/ReadingsController.cs"> <Files> <File FileName="PollutometerWebApi/AqiCalculator.cs" Line="7" Column="16" /> <File FileName="PollutometerWebApi.Tests/Test.cs" Line="15" Column="1" /> diff --git a/PollutometerWebApi/Controllers/ReadingsController.cs b/PollutometerWebApi/Controllers/ReadingsController.cs index f915e17..c80599f 100644 --- a/PollutometerWebApi/Controllers/ReadingsController.cs +++ b/PollutometerWebApi/Controllers/ReadingsController.cs @@ -67,7 +67,7 @@ namespace PollutometerWebApi.Controllers { SqlOperator.PostReading(reading);
var aqi = AqiCalculator.CalculateAqi(reading);
- if (aqi.Value > 151)
+ if (aqi.Value >= 151)
EmailSender.SendEmail(aqi); return Ok(); } |