Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zheng.shen committed Dec 24, 2024
1 parent 7dce5c0 commit 5c3765b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion face_recognition/face_recognition_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def update_face_cluster(self, repo_id, username=None):
logger.info('Finish face cluster repo %s' % repo_id)

def get_pending_face_cluster_repo_list(self, start, count):
per_day_check_time = datetime.now()
per_day_check_time = per_day_check_time = datetime.now() - timedelta(hours=23)
with self._db_session_class() as session:
cmd = """SELECT repo_id, last_face_cluster_time FROM repo_metadata WHERE face_recognition_enabled = True
AND (last_face_cluster_time < :per_day_check_time OR last_face_cluster_time IS NULL) limit :start, :count"""
Expand Down

0 comments on commit 5c3765b

Please sign in to comment.