mirror of
https://github.com/MISP/misp-galaxy.git
synced 2024-11-26 16:57:18 +00:00
fix: [atrm] fix bug in authors
This commit is contained in:
parent
789d3754f8
commit
0609974545
1 changed files with 6 additions and 3 deletions
|
@ -105,13 +105,16 @@ json_cluster = {
|
|||
with open(os.path.join(args.path, 'docs', 'acknowledgments.md'), 'r') as f:
|
||||
for line in f:
|
||||
if line.startswith('* '):
|
||||
try:
|
||||
json_cluster['authors'].append(re.search(r'\w+ [\w&]+', line).group())
|
||||
except AttributeError:
|
||||
json_cluster['authors'].append(re.search(r'\w+', line).group())
|
||||
|
||||
# save the Galaxy and Cluster file
|
||||
with open(os.path.join('..', 'galaxies', 'atrm.json'), 'w') as f:
|
||||
json.dump(json_galaxy, f, indent=2)
|
||||
json.dump(json_galaxy, f, indent=2, sort_keys=True)
|
||||
|
||||
with open(os.path.join('..', 'clusters', 'atrm.json'), 'w') as f:
|
||||
json.dump(json_cluster, f, indent=2)
|
||||
json.dump(json_cluster, f, indent=2, sort_keys=True)
|
||||
|
||||
print("All done, please don't forget to ./jq_all_the_things.sh, commit, and then ./validate_all.sh.")
|
||||
|
|
Loading…
Reference in a new issue