Skip to content

Commit

Permalink
format fix
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisBer67 committed Jan 29, 2025
1 parent 7aa5013 commit 6d18798
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions src/dataland_qa_lab/review/dataset_reviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ def review_dataset(data_id: str) -> QaReportMetaInformation | None:
existing_entity = get_entity(data_id, ReviewedDataset)

now_utc = datetime.now(UTC)
ger_timezone = timedelta(hours=2) if now_utc.astimezone(
timezone(timedelta(hours=1))).dst() else timedelta(hours=1)
ger_timezone = (
timedelta(hours=2) if now_utc.astimezone(timezone(timedelta(hours=1))).dst() else timedelta(hours=1)
)
formatted_german_time1 = (now_utc + ger_timezone).strftime("%Y-%m-%d %H:%M:%S")

logger.debug("Checking if the dataset is already existing in the database")
Expand All @@ -55,12 +56,14 @@ def review_dataset(data_id: str) -> QaReportMetaInformation | None:
logger.debug("Text extracted from the relevant pages.")

report = NuclearAndGasReportGenerator().generate_report(
relevant_pages=readable_text, dataset=data_collection)
relevant_pages=readable_text, dataset=data_collection
)
logger.info("Report generated succesfully.")

data = config.get_config(
).dataland_client.eu_taxonomy_nuclear_gas_qa_api.post_nuclear_and_gas_data_qa_report(
data_id=data_id, nuclear_and_gas_data=report
data = (
config.get_config().dataland_client.eu_taxonomy_nuclear_gas_qa_api.post_nuclear_and_gas_data_qa_report(
data_id=data_id, nuclear_and_gas_data=report
)
)

now_utc = datetime.now(UTC)
Expand Down

0 comments on commit 6d18798

Please sign in to comment.