Showing
2 changed files
with
2 additions
and
2 deletions
... | @@ -53,7 +53,7 @@ def date_calculate(url): | ... | @@ -53,7 +53,7 @@ def date_calculate(url): |
53 | 53 | ||
54 | 54 | ||
55 | 55 | ||
56 | -with open('db (2).json', 'rt', encoding='utf-8') as json_file: | 56 | +with open('convertcsv1.json', 'rt', encoding='utf-8') as json_file: |
57 | json_data = json.load(json_file) | 57 | json_data = json.load(json_file) |
58 | 58 | ||
59 | 59 | ||
... | @@ -65,7 +65,7 @@ for js in json_data: | ... | @@ -65,7 +65,7 @@ for js in json_data: |
65 | js[key] = find_url_in_str(value) | 65 | js[key] = find_url_in_str(value) |
66 | # critical point | 66 | # critical point |
67 | if key == "Keyword": | 67 | if key == "Keyword": |
68 | - js[key] = "[" + value.replace("[", "").replace("]", "") + "]" | 68 | + js[key] = value.replace("[", "").replace("]", "") |
69 | if key == "View": | 69 | if key == "View": |
70 | js["D_day"] = date_calculate(js["Date"]) | 70 | js["D_day"] = date_calculate(js["Date"]) |
71 | break | 71 | break | ... | ... |
-
Please register or login to post a comment