This commit is contained in:
Cyberes 2023-10-03 00:12:13 -06:00
parent f6acd67738
commit 70126acdf2
1 changed files with 1 additions and 0 deletions

View File

@ -24,6 +24,7 @@ def moderation_worker():
result = redis_moderation.blpop('queue:msgs_to_check')
try:
msg, tag = json.loads(result[1])
print(tag)
_, categories = check_moderation_endpoint(msg)
redis_moderation.rpush('queue:flagged_categories', json.dumps((tag, categories)))
except: