Skip to content

Commit a6ec8f4

Browse files
authored
relax fetch, remove print (#2)
1 parent 6ca5982 commit a6ec8f4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

scripts/fetch_updates.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,13 @@ def log_broken(contribution, msg):
3030

3131
def process_contribution(contribution):
3232
date_today = datetime.today().strftime('%Y-%m-%d')
33-
this_version = 0
33+
this_version = '0'
3434

3535
if contribution['status'] != 'DEPRECATED':
36-
# compare version to what is at url. If has iterated up, update contribution to
36+
# compare version to what is at url. If has changed, update contribution to
3737
# what is online
3838
if 'version' in contribution:
39-
this_version = int(contribution['version'])
39+
this_version = contribution['version']
4040

4141
try:
4242
properties_raw = read_properties_txt(contribution['source'])
@@ -53,7 +53,7 @@ def process_contribution(contribution):
5353
log_broken(contribution, f'invalid file, {date_today}')
5454
return
5555

56-
if int(props['version']) > this_version:
56+
if props['version'] != this_version:
5757
# update from online
5858
update_contribution(contribution, props)
5959
contribution['status'] = 'VALID'

scripts/parse_and_validate_properties_txt.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ def parse_text(properties_raw):
9494
if field_name:
9595
properties_dict[field_name] = field_value
9696

97-
print(f"properites_dict={properties_dict}")
9897
return properties_dict
9998

10099
def validate_existing(properties_dict):

0 commit comments

Comments
 (0)