-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fixes weather code descriptions (#231)
* fix: fixes weather code descriptions * fix: add migrations
- Loading branch information
Showing
2 changed files
with
74 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
apps/weather/migrations/0009_alter_weather_weather_code.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Generated by Django 4.2 on 2023-04-30 08:03 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
dependencies = [ | ||
("weather", "0008_weather_weather_wea_date_ti_accf53_idx_and_more"), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name="weather", | ||
name="weather_code", | ||
field=models.FloatField( | ||
choices=[ | ||
(0, "Clear sky"), | ||
(1, "Mainly clear"), | ||
(2, "Mainly partly cloudy"), | ||
(3, "Mainly overcast"), | ||
(45, "Fog"), | ||
(48, "Depositing rime fog"), | ||
(51, "Light Drizzle"), | ||
(53, "Moderate Drizzle"), | ||
(55, "Heavy Drizzle"), | ||
(56, "Light Freezing Drizzle"), | ||
(57, "Heavy Freezing Drizzle"), | ||
(61, "Slight Rain"), | ||
(63, "Moderate Rain"), | ||
(65, "Heavy Rain"), | ||
(66, "Light Freezing Rain"), | ||
(67, "Heavy Freezing Rain"), | ||
(71, "Light Snow fall"), | ||
(73, "Moderate Snow fall"), | ||
(75, "Heavy Snow fall"), | ||
(77, "Snow grains"), | ||
(80, "Slight Rain showers"), | ||
(81, "Moderate Rain showers"), | ||
(82, "Heavy Rain showers"), | ||
(85, "Slight Snow showers"), | ||
(86, "Heavy Snow showers"), | ||
(95, "Thunderstorm"), | ||
(96, "Thunderstorm with slight hail"), | ||
(99, "Thunderstorm with heavy hail"), | ||
] | ||
), | ||
), | ||
] |