diff options
| author | Max Nanis | 2026-09-29 18:53:10 +0000 |
|---|---|---|
| committer | Max Nanis | 2026-09-29 18:53:10 +0000 |
| commit | 3e7eb6ca784bc062bd1c7129e40b8705543d8469 (patch) | |
| tree | 30bc2883ab3397f290fb494fd38b96d47ac701b9 /scripts/unreject.py | |
| parent | d43e82fd2c799410b15706d10dbbcaa838325a4d (diff) | |
| parent | cd173e67e4e0514271371f4a5e5136f7f61d06d1 (diff) | |
| download | amt-jb-3e7eb6ca784bc062bd1c7129e40b8705543d8469.tar.gz amt-jb-3e7eb6ca784bc062bd1c7129e40b8705543d8469.zip | |
Merges pull request #6
Redemption Modal. Redemption Magic flow. User Account Icon
Diffstat (limited to 'scripts/unreject.py')
| -rw-r--r-- | scripts/unreject.py | 26 |
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 - ) |
