aboutsummaryrefslogtreecommitdiff
path: root/scripts/unreject.py
diff options
context:
space:
mode:
authorMax Nanis2026-09-29 11:47:48 -0700
committerMax Nanis2026-09-29 11:47:48 -0700
commitcd173e67e4e0514271371f4a5e5136f7f61d06d1 (patch)
tree03d389b22cc02a4b1dd702eca0db1f13a43c4e3f /scripts/unreject.py
parent08643310a783d4da5212ef419ee8d909f683f8e2 (diff)
downloadamt-jb-cd173e67e4e0514271371f4a5e5136f7f61d06d1.tar.gz
amt-jb-cd173e67e4e0514271371f4a5e5136f7f61d06d1.zip
Redemption Modal. Redemption Magic flow. User Account Icondev
Diffstat (limited to 'scripts/unreject.py')
-rw-r--r--scripts/unreject.py26
1 files changed, 0 insertions, 26 deletions
diff --git a/scripts/unreject.py b/scripts/unreject.py
deleted file mode 100644
index 298561f..0000000
--- a/scripts/unreject.py
+++ /dev/null
@@ -1,26 +0,0 @@
-from jb.decorators import AMTM, AM
-from jb.flow.assignment_tasks import approve_assignment
-from jb.managers.amt import APPROVAL_MESSAGE
-
-res = AM.pg_config.execute_sql_query(
- """
-SELECT amt_assignment_id, submit_time, h.amt_hit_id, ht.amt_hit_type_id
-FROM mtwerk_assignment AS a
-LEFT JOIN mtwerk_hit AS h ON h.id = a.hit_id
-LEFT JOIN mtwerk_hittype AS ht ON h.hit_type_id = ht.id
-WHERE amt_worker_id='A1FMSKDAIK80PQ'
-and a.status = 2
-AND a.created_at>'2026-04-21 00:20:54.709322'
-ORDER BY a.created_at;
-"""
-)
-
-for x in res:
- approve_assignment(
- amtm=AMTM,
- am=AM,
- amt_assignment_id=x['amt_assignment_id'],
- msg=APPROVAL_MESSAGE,
- amt_hit_type_id=x['amt_hit_type_id'],
- override_rejection=True
- )