Skip to content

Commit bd1a132

Browse files
committed
Adjust to production
Signed-off-by: Toomore Chiang <[email protected]>
1 parent a1716da commit bd1a132

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

Dockerfile-app

+3
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ ADD ./templates/base.html \
8686
./templates/user.html \
8787
./templates/
8888

89+
ADD ./static/ExpenseStatusLabel.js \
90+
./static/
91+
8992
ADD ./templates/mail/base*.html \
9093
./templates/mail/coscup_base.html \
9194
./templates/mail/sender_base.html \

scripts/working_applyreview.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
''' Wording Apply Review '''
22
from module.applyreview import ApplyReview
33
from module.team import Team
4-
from module.waitlist import WaitList
4+
from models.waitlistdb import WaitListDB
55
from celery_task.task_applyreview import applyreview_submit_one
66

77

@@ -13,17 +13,23 @@ def run_process_one(pid: str, tid: str, uid: str):
1313

1414
def run_process(pid: str):
1515
''' Run '''
16+
total = 0
1617
for team in Team.list_by_pid(pid=pid):
17-
waiting_data = WaitList.list_by_team(pid=pid, tid=team.id)
18+
waiting_data = WaitListDB().list_by(pid=pid, tid=team.id, _all=True)
19+
print(team.id)
1820
if waiting_data is None:
1921
break
2022

2123
for user in waiting_data:
24+
total += 1
25+
print(team.id, user['uid'])
2226
applyreview_submit_one.apply_async(kwargs={
2327
'pid': pid, 'tid': team.id, 'uid': user['uid'],
2428
})
2529

30+
print(total)
31+
2632

2733
if __name__ == '__main__':
28-
# run_process('2023')
34+
run_process('2023')
2935
pass

0 commit comments

Comments
 (0)