Skip to content

Commit

Permalink
Run pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
dalonsoa committed Jan 9, 2024
1 parent 00547f0 commit fd5559c
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 13 deletions.
2 changes: 1 addition & 1 deletion importing/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
import os
import shutil
import time
import zoneinfo
from datetime import datetime
from logging import getLogger
from numbers import Number
import zoneinfo

import numpy as np
import pandas as pd
Expand Down
21 changes: 16 additions & 5 deletions station/migrations/0002_station_timezone.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,31 @@
# Generated by Django 4.2.7 on 2023-11-16 11:45

import datetime

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('station', '0001_initial'),
("station", "0001_initial"),
]

operations = [
migrations.AddField(
model_name='station',
name='timezone',
field=models.CharField(choices=[('London', 'Europe/London'), ('Paris', 'Europe/Paris'), ('New York', 'America/New_York')], default=datetime.datetime(2023, 11, 16, 11, 45, 57, 843717, tzinfo=datetime.timezone.utc), max_length=100, verbose_name='Timezone'),
model_name="station",
name="timezone",
field=models.CharField(
choices=[
("London", "Europe/London"),
("Paris", "Europe/Paris"),
("New York", "America/New_York"),
],
default=datetime.datetime(
2023, 11, 16, 11, 45, 57, 843717, tzinfo=datetime.timezone.utc
),
max_length=100,
verbose_name="Timezone",
),
preserve_default=False,
),
]
4 changes: 2 additions & 2 deletions station/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
# creadoras, ya sea en uso total o parcial del código.
########################################################################################

import zoneinfo

from django.core.validators import MaxValueValidator, MinValueValidator
from django.db import models
from django.urls import reverse

import zoneinfo

TIMEZONES = tuple([(val, val) for val in sorted(zoneinfo.available_timezones())])

# Global variables used in Basin model
Expand Down
8 changes: 4 additions & 4 deletions validated/functions.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import calendar
import logging
import zoneinfo
from datetime import date, datetime, time, tzinfo
from threading import Thread
from typing import Tuple, Union, overload, Sequence, List, Dict, Any
from decimal import Decimal
import zoneinfo
from threading import Thread
from typing import Any, Dict, List, Sequence, Tuple, Union, overload

import numpy as np
import pandas as pd
from django.apps import apps
from django.db.models import BooleanField, Value
import logging

from station.models import DeltaT, Station
from variable.models import Variable
Expand Down
2 changes: 1 addition & 1 deletion validated/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

from __future__ import unicode_literals

import json
from datetime import datetime
from decimal import Decimal
import json

from django.core.serializers.json import DjangoJSONEncoder
from django.http import HttpResponse, JsonResponse
Expand Down

0 comments on commit fd5559c

Please sign in to comment.