Updated README.md with latest changes and directory names to be more meaningful

This commit is contained in:
KorenLazar
2021-01-28 14:13:34 +02:00
parent 6bcbdee486
commit 47c0d04ce4
4 changed files with 25 additions and 30 deletions

View File

@@ -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,