Skip to content
This repository was archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Set transmission risk level LOWEST to outdated diagnosis-keys.
Browse files Browse the repository at this point in the history
  • Loading branch information
keiji committed Jan 21, 2022
1 parent 0367fb7 commit f062e87
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -426,8 +426,8 @@ private static ExposureConfiguration CreateDefaultConfiguration()
},
TransmissionRiskLevelValues = new int[]
{
1,
7,
0,
0,
7,
7,
7,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"DurationWeight": 50,
"DaysSinceLastExposureWeight": 50,
"TransmissionRiskScores": [
1,
7,
0,
0,
7,
7,
7,
Expand Down
4 changes: 2 additions & 2 deletions documents/static/exposure_configuration/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,8 @@
1
],
"transmission_risk_level_values": [
1,
7,
0,
0,
7,
7,
7,
Expand Down
4 changes: 2 additions & 2 deletions src/Covid19Radar.Api/V3DiagnosisApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ namespace Covid19Radar.Api
{
public class V3DiagnosisApi
{
private const int TRANSMISSION_RISK_LEVEL_INVALID = 0;
private const int TRANSMISSION_RISK_LEVEL_LOWEST = 1;
private const int TRANSMISSION_RISK_LEVEL_MEDIUM = 4;

private const string CHAFF_HEADER = "X-Chaff";
Expand Down Expand Up @@ -79,7 +79,7 @@ public async Task<IActionResult> RunAsync(
// Make compatible with Legacy-V1 mode.
foreach (var key in submissionParameter.Keys)
{
var transmissionRiskLevel = TRANSMISSION_RISK_LEVEL_INVALID;
var transmissionRiskLevel = TRANSMISSION_RISK_LEVEL_LOWEST;
if (key.DaysSinceOnsetOfSymptoms >= Constants.DaysHasInfectiousness)
{
transmissionRiskLevel = TRANSMISSION_RISK_LEVEL_MEDIUM;
Expand Down

0 comments on commit f062e87

Please sign in to comment.