Skip to content

Commit

Permalink
Add daily vaccination to stats endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
lukarenko committed Feb 3, 2021
1 parent 4fca89e commit bf8f684
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ In case of failures a notification is set to slack channel #alert through Data A

## Changelog

## 1.10.1

* Adds today data for vaccination.administered
* Schema version 39

## 1.10.0

* Adds `schools-cases.csv` to API as `/api/schools` endpoint
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,11 +458,11 @@ StatsDaily GetDailyStatsFromRaw(ImmutableDictionary<string, int> header, string
deceasedPerType,
new Vaccination(
administered: new TodayToDate(
null,
GetInt("vaccination.administered", header, fields),
GetInt("vaccination.administered.todate", header, fields)
),
administered2nd: new TodayToDate(
null,
GetInt("vaccination.administered2nd", header, fields),
GetInt("vaccination.administered2nd.todate", header, fields)
),
used: new TodayToDate(
Expand Down
2 changes: 1 addition & 1 deletion sources/SloCovidServer/SloCovidServer/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace SloCovidServer
{
public class Startup
{
const string SchemaVersion = "38";
const string SchemaVersion = "39";
const string CorsPolicy = "Any";
readonly IWebHostEnvironment env;
public Startup(IConfiguration configuration, IWebHostEnvironment env)
Expand Down
2 changes: 1 addition & 1 deletion version.xml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<version>1.10.0</version>
<version>1.10.1</version>

0 comments on commit bf8f684

Please sign in to comment.