Updated README.md with latest changes and directory names to be more meaningful
This commit is contained in:
6
utils.py
6
utils.py
@@ -9,8 +9,8 @@ from os import path
|
||||
from supermarket_chain import SupermarketChain
|
||||
import re
|
||||
|
||||
LOGS_DIRNAME = "logs"
|
||||
XMLS_DIRNAME = "xmls"
|
||||
RESULTS_DIRNAME = "results"
|
||||
RAW_FILES_DIRNAME = "raw_files"
|
||||
|
||||
|
||||
def xml_file_gen(chain: SupermarketChain, store_id: int, category_name: str) -> str:
|
||||
@@ -24,7 +24,7 @@ def xml_file_gen(chain: SupermarketChain, store_id: int, category_name: str) ->
|
||||
:return: An xml filename
|
||||
"""
|
||||
store_id_str: str = f"-{str(store_id)}" if SupermarketChain.is_valid_store_id(store_id) else ""
|
||||
return path.join(XMLS_DIRNAME, f"{chain}-{category_name}{store_id_str}.xml")
|
||||
return path.join(RAW_FILES_DIRNAME, f"{chain}-{category_name}{store_id_str}.xml")
|
||||
|
||||
|
||||
def create_bs_object(xml_path: str, chain: SupermarketChain, store_id: int, load_xml: bool,
|
||||
|
Reference in New Issue
Block a user