Beispiel #1
0
 def get_seen_article_last_datetime(self):
     return UserRecLog.get_user_last_rec_time(self)
Beispiel #2
0
 def combine_user_log(self, device_user):
     seq_ids, _ = device_user.get_seen_article_ids_and_last_datetime()
     now = datetime.datetime.utcnow()
     UserRecLog.add_ids_to_rec_log(self, now, seq_ids)
     self.copy_candidateset(device_user)
Beispiel #3
0
 def get_seen_article_ids_and_last_datetime(self):
     return UserRecLog.get_user_rec_log(self)
Beispiel #4
0
    def add_rec_log(self, rec_time, articles, article_seq_ids):
        self.remove_articles_from_candidateset(articles)
        self.update_last_rec_time(rec_time)

        rec_log = UserRecLog.add_ids_to_rec_log(self, rec_time, article_seq_ids)
        return rec_log