asdasasd
This commit is contained in:
6
sync.py
6
sync.py
@@ -74,10 +74,10 @@ def pull_all():
|
||||
f.write(yaml_data + "\n")
|
||||
print(f"./cards/{card_id}.yaml written!")
|
||||
continue
|
||||
|
||||
with open(f"cards/{card_id}.xml", "w") as f:
|
||||
ftype = "xml" if data.strip() else "yaml"
|
||||
with open(f"cards/{card_id}.{ftype}", "w") as f:
|
||||
f.write(data + "\n")
|
||||
print(f"./cards/{card_id}.xml written!")
|
||||
print(f"./cards/{card_id}.{ftype} written!")
|
||||
|
||||
def push_all():
|
||||
existing_card_ids = get_card_ids()
|
||||
|
||||
Reference in New Issue
Block a user