fix: サポート済みじゃないとハッシュが更新されない

pull/109/head
yupix 8 months ago
parent b69b47db66
commit 29f565e9aa
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -112,10 +112,12 @@ for schema in api['components']['schemas']:
}
else:
current_hash = get_sha256_hash(api['components']['schemas'][schema])
if current_hash != old_data['hash'] and endpoints['schemas'][schema]['status'] == "supported":
if current_hash != old_data['hash']:
print(f"{COLORS.green}[CHANGED: SCHEMA] changed schema hash {COLORS.reset} {schema} {COLORS.reset}")
endpoints['schemas'][schema]['hash'] = current_hash
endpoints['schemas'][schema]['status'] = "needToWork"
if endpoints['schemas'][schema]['status'] == "supported": # サポート済みの場合のみステータスを変更する
endpoints['schemas'][schema]['status'] = "needToWork"
with open('./datas/endpoints.json', mode='w', encoding='utf-8') as f:

Loading…
Cancel
Save