def load_subjects(): """ Fills DB with subject shorcut from config file. This is needed for reviews feature. Run this just when you want to create DB fo reviews. """ # Remove duplicates subjects = list(set(Config.subjects)) review_repo = ReviewRepository() for subject in subjects: print(f'Importing subject {subject}') review_repo.add_subject(subject) print('Import complete')
def load_subjects(): review_repo = ReviewRepository() for subject in config.subjects: review_repo.add_subject(subject)