Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaga committed Sep 1, 2023
1 parent 260f948 commit 54f81d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
5 changes: 3 additions & 2 deletions database_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,9 @@ def check_md5():
print(f"SDE: Downloaded {(downloaded/(1024**2)),2} Mb ")
md5_str.append(MiscUtils.md5sum(source[4]))
if md5_str[-1] != md5_str[-2]:
print(md5_str[-1],md5_str[-2])
print("SDE: Checksumn error, Aborting ...")
return False
# return False
return True


Expand All @@ -95,7 +96,7 @@ def check_md5():
if MiscUtils.zip_decompress(source[4], Path('.')):
processor = SdeParser(sdePath, source[5])
processor.configuration.extended_coordinates = False
processor.configuration.map_abbysal = True
processor.configuration.map_abbysal = False
processor.configuration.map_kspace = True
processor.configuration.map_void = True
processor.configuration.map_wspace = True
Expand Down
6 changes: 2 additions & 4 deletions sde_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,8 +510,7 @@ def _parse_solar_system(self, path_object):
self._Location[self._counter]['id'] = element['solarSystemID']
self._Location[self._counter]['name'] = self._get_name(element['solarSystemID'])
# print('SDE: parsing data for system ' + self._Location[self._counter]["name"])
print(f'SDE: Parsing {self._Location[0]["name"]} > '
'{self._Location[1]["name"]} > {self._Location[2]["name"]}')
print(f'SDE: Parsing {self._Location[0]["name"]} > {self._Location[1]["name"]} > {self._Location[2]["name"]}')
params['id'] = element['solarSystemID']
params['name'] = self._Location[self._counter]['name']
params['constellationId'] = self._Location[1]['id']
Expand Down Expand Up @@ -552,8 +551,7 @@ def _parse_solar_system(self, path_object):

self._parse_gates(element['stargates'])
self._parse_planets(element['planets'])
if element.get('star'):
self._parse_star(element['star'])
self._parse_star(element['star'])
cur.close()

def _parse_constellation(self, path_object):
Expand Down

0 comments on commit 54f81d2

Please sign in to comment.