Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Ilka Kistinger
bee-weather
Commits
e6509072
Commit
e6509072
authored
Mar 12, 2020
by
Charles Still
Browse files
Fix backup poll in file pollforecast instead of program.cs
parent
8aa56ab0
Changes
2
Hide whitespace changes
Inline
Side-by-side
BeeWeatherPollenTracker/PollForecast.cs
View file @
e6509072
...
...
@@ -24,6 +24,7 @@ namespace BeeWeatherPollenTracker
private
List
<
string
>
_poll_type
=
new
List
<
string
>();
private
List
<
beehive_poll_forecast
>
_poll_forecast_list
;
private
static
LoggerManager
logs
=
null
;
private
string
pollenJson
=
""
;
#
endregion
/// <summary>
...
...
@@ -50,6 +51,7 @@ namespace BeeWeatherPollenTracker
catch
(
Exception
ex
)
{
logs
.
WriteInFile
(
ex
);
logs
.
WriteBackup
(
LoggerManager
.
DataForcastType
.
POLL
,
pollenJson
);
}
finally
{
...
...
@@ -79,7 +81,7 @@ namespace BeeWeatherPollenTracker
{
var
pollenResults
=
pollenClient
.
GetAsync
(
POLLEN_FORECAST_URL
).
Result
;
var
pollenJson
=
pollenResults
.
Content
.
ReadAsStringAsync
().
Result
;
pollenJson
=
pollenResults
.
Content
.
ReadAsStringAsync
().
Result
;
pollenData
=
JsonConvert
.
DeserializeObject
<
ClimateEnvironment
>(
pollenJson
);
}
...
...
BeeWeatherPollenTracker/Program.cs
View file @
e6509072
...
...
@@ -47,12 +47,7 @@ namespace BeeWeatherPollenTracker
catch
(
Exception
e
)
{
logs
.
WriteInFile
(
e
);
logs
.
WriteBackup
(
LoggerManager
.
DataForcastType
.
POLL
,
pollenJson
);
}
#
endregion
Pollen
t
.
Join
();
}
}
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment