WIP modal

This commit is contained in:
pakintada@gmail.com 2023-09-22 09:54:07 +07:00
parent b681a5a9af
commit fda22acffe
4 changed files with 60 additions and 13 deletions

View file

@ -102,6 +102,27 @@ def create_map(events_action: str, log: str, additional=[]) -> str:
# 3 - changefile = track log
# 4 - debug = enable debug
def merge(args):
"""
Merge the 2 json files together with input of target paths, output path and changefile
:param args: A list of arguments. list[]
:type args: list
where each element position;
0 - master_path = master.json / to be merged
1 - dev_path = dev.json / to merge into another
2 - outfile = merged json output
3 - changefile = track log (json) --- generate by merge to html,log,json
4 - debug = enable debug
5 - requester = requester's name sent by client
:return: None
:rtype: None
"""
print("ARGS: => ",args)
master_path = args[0]; dev_path = args[1]; outfile_path = args[2]; changefile_path = args[3];
@ -225,7 +246,7 @@ def merge(args):
for event in events:
# Create div
# print("Log as list: ",str(event).split("\t"))
html_string = "\t<div class=\"flex\">\n"
html_string = "\t<div class=\"flex p-4 bg-stone-300 rounded m-2\">\n"
event_fraction = str(event).split("\t")
for i in event_fraction:
if i != "" and i != "\n" and i != "---":