Added saving null responses setting and column name config

This commit is contained in:
2023-10-29 15:36:18 +03:00
parent 367abfc325
commit 430f36619a
5 changed files with 43 additions and 17 deletions

View File

@@ -10,6 +10,7 @@ from .lenenergo import LenenergoParser
from .preprocess import (
COL_NS,
ICOL_NS,
PR_COL_NS,
group_by_index,
preprocess_df,
preprocess_read_df,
@@ -20,6 +21,7 @@ __all__ = (
"async_fetch_building_id",
"async_fetch_building_ids",
"COL_NS",
"PR_COL_NS",
"concurrent_fetch_builing_ids",
"fetch_builing_ids",
"get_building_id",

View File

@@ -21,6 +21,23 @@ COL_NS = {
"lng": "Долгота",
}
PR_COL_NS = (
"index",
"region",
"area",
"town",
"street",
"branch",
"res",
"comment",
"building_id",
"lat",
"lng",
"start",
"finish",
)
ICOL_NS = dict(map(reversed, COL_NS.items()))