Skip to content

Commit

Permalink
Merge commit '7ebfb3273ea8f58e297e88c5e2117bfe679cb4f9' into issue/rm…
Browse files Browse the repository at this point in the history
…-old-db

# Conflicts:
#	pvconsumer/save.py
  • Loading branch information
peterdudfield committed Dec 22, 2023
2 parents 29de63c + 7ebfb32 commit 2b02249
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
9 changes: 5 additions & 4 deletions pvconsumer/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,16 @@

import click
import pandas as pd
from pvoutput import PVOutput
from pvsite_datamodel.connection import DatabaseConnection
from pvsite_datamodel.sqlmodels import SiteSQL
from sqlalchemy.orm import Session

import pvconsumer
from pvconsumer.pv_systems import filter_pv_systems_which_have_new_data, get_pv_systems
from pvconsumer.save import save_to_pv_site_database
from pvconsumer.solar_sheffield_passiv import get_all_latest_pv_yield_from_solar_sheffield
from pvconsumer.utils import format_pv_data
from pvoutput import PVOutput
from pvsite_datamodel.connection import DatabaseConnection
from pvsite_datamodel.sqlmodels import SiteSQL
from sqlalchemy.orm import Session

logging.basicConfig(
level=getattr(logging, os.getenv("LOGLEVEL", "INFO")),
Expand Down
9 changes: 4 additions & 5 deletions pvconsumer/pv_systems.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,15 @@
from typing import List, Optional

import pandas as pd
from pvconsumer.utils import pv_output, solar_sheffield_passiv
from pvoutput import PVOutput
from sqlalchemy.orm import Session
from sqlalchemy import func

from pvsite_datamodel.sqlmodels import SiteSQL, GenerationSQL
from pvsite_datamodel.read import get_all_sites
from pvsite_datamodel.sqlmodels import GenerationSQL, SiteSQL
from sqlalchemy import func
from sqlalchemy.orm import Session

import pvconsumer
from pvconsumer.solar_sheffield_passiv import get_all_systems_from_solar_sheffield
from pvconsumer.utils import pv_output, solar_sheffield_passiv

# from pvconsumer.utils import df_to_list_pv_system, list_pv_system_to_df

Expand Down
3 changes: 1 addition & 2 deletions pvconsumer/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@
from datetime import timezone

import pandas as pd
from pvsite_datamodel.sqlmodels import GenerationSQL, SiteSQL
from sqlalchemy.orm import Session

from pvsite_datamodel.sqlmodels import SiteSQL, GenerationSQL

#
logger = logging.getLogger(__name__)

Expand Down

0 comments on commit 2b02249

Please sign in to comment.