renamed games folder to entries folder (also contained frameworks, libraries, ...) and added to the backlog
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
"""
|
||||
"""
|
||||
Once data from libregamewiki is imported, synchronize with our database, i.e. identify the entries both have in common,
|
||||
estimate the differences in the entries both have in common, suggest to add the entries they have not in common to each
|
||||
other.
|
||||
@ -187,8 +187,7 @@ if __name__ == "__main__":
|
||||
print('{}: {}'.format('engine', get_unique_field_content('engine', lgw_entries)))
|
||||
|
||||
# read our database
|
||||
games_path = os.path.join(root_path, 'games')
|
||||
our_entries = assemble_infos(games_path)
|
||||
our_entries = assemble_infos(c.entries_path)
|
||||
print('{} entries with us'.format(len(our_entries)))
|
||||
|
||||
# just the names
|
||||
@ -244,10 +243,10 @@ if __name__ == "__main__":
|
||||
# determine file name
|
||||
print('create new entry for {}'.format(lgw_name))
|
||||
file_name = canonical_game_name(lgw_name) + '.md'
|
||||
target_file = os.path.join(games_path, file_name)
|
||||
target_file = os.path.join(entries_path, file_name)
|
||||
if os.path.isfile(target_file):
|
||||
print('warning: file {} already existing, save under slightly different name'.format(file_name))
|
||||
target_file = os.path.join(games_path, file_name[:-3] + '-duplicate.md')
|
||||
target_file = os.path.join(entries_path, file_name[:-3] + '-duplicate.md')
|
||||
if os.path.isfile(target_file):
|
||||
continue # just for safety reasons
|
||||
|
||||
|
Reference in New Issue
Block a user