Skip to content

Commit

Permalink
Change manifest path into master branch's file
Browse files Browse the repository at this point in the history
  • Loading branch information
ShoyuVanilla committed May 25, 2020
1 parent ff3fb6f commit c7226ed
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions module/data_mover.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import json
import collections
import sys

def move_data(prev_path, current_path):
with open(prev_path) as f:
prev_data = json.load(f)
with open(current_path) as f:
current_data = json.load(f, object_pairs_hook=collections.OrderedDict)

for key, value in current_data.items():
if key in prev_data:
current_data[key] = prev_data[key]
print(current_data[key])
else:
print(key)

with open(current_path, "w") as f:
json.dump(current_data, f, ensure_ascii=False, indent=2)

move_data(sys.argv[1], sys.argv[2])
2 changes: 1 addition & 1 deletion module/module.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
],

"url": "https://github.com/ShoyuVanilla/FoundryVTT-lang-ko-KR",
"manifest": "https://github.com/raw/ShoyuVanilla/FoundryVTT-lang-ko-KR/v0.3.4/module/module.json",
"manifest": "https://github.com/raw/ShoyuVanilla/FoundryVTT-lang-ko-KR/master/module/module.json",
"download": "https://github.com/ShoyuVanilla/FoundryVTT-lang-ko-KR/releases/download/v0.3.4/release.zip"
}

0 comments on commit c7226ed

Please sign in to comment.