liyucheng commited on
Commit
af08491
1 Parent(s): 94deb52

Update get_configs.py

Browse files
Files changed (1) hide show
  1. get_configs.py +3 -4
get_configs.py CHANGED
@@ -5,8 +5,7 @@ all_articles = glob.glob('./articles/*.json')
5
  file_names = [os.path.splitext(os.path.basename(path))[0] for path in all_articles]
6
  _TIMES = sorted(file_names) + ['all']
7
 
8
- times_string = "_TIMES = " + repr(_TIMES)
9
-
10
  # Write the string to a Python file
11
- with open('configs.py', 'w') as file:
12
- file.write(times_string)
 
 
5
  file_names = [os.path.splitext(os.path.basename(path))[0] for path in all_articles]
6
  _TIMES = sorted(file_names) + ['all']
7
 
 
 
8
  # Write the string to a Python file
9
+ with open('configs.txt', 'w') as file:
10
+ for time in _TIMES:
11
+ file.write(time + '\n')