Skip to content

Commit

Permalink
fix: [Term tracker] fix fct args
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Jul 14, 2021
1 parent 7a652b5 commit d97305a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/trackers/Tracker_Term.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def compute(self, item_id):
####### # TODO: check if source needed #######
for word in self.list_tracked_words:
if word in dict_words_freq:
self.new_term_found(word, 'word', item.get_id(), item_date, item_source)
self.new_term_found(word, 'word', item.get_id(), item_source)

# check words set
for elem in self.set_tracked_words_list:
Expand All @@ -109,7 +109,7 @@ def compute(self, item_id):
if word in dict_words_freq:
nb_uniq_word += 1
if nb_uniq_word >= nb_words_threshold:
self.new_term_found(word_set, 'set', item.get_id(), item_date, item_source)
self.new_term_found(word_set, 'set', item.get_id(), item_source)

def new_term_found(self, term, term_type, item_id, item_source):
uuid_list = Term.get_term_uuid_list(term, term_type)
Expand Down

0 comments on commit d97305a

Please sign in to comment.