Skip to content

Commit

Permalink
perf: 优化user_id_list.txt文件读取
Browse files Browse the repository at this point in the history
  • Loading branch information
dataabc committed Mar 17, 2020
1 parent a6a8f07 commit 359a894
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion weibo.py
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,8 @@ def get_user_config_list(self, file_path):
user_config['since_date'] = info[2]
else:
user_config['since_date'] = self.since_date
user_config_list.append(user_config)
if user_config not in user_config_list:
user_config_list.append(user_config)
return user_config_list

def initialize_info(self, user_config):
Expand Down

0 comments on commit 359a894

Please sign in to comment.