Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit ec8db5e

Browse files
committed
Merge pull request #369 from flytoj2ee/dev
filter the invalid active contest and upcoming contest data
2 parents 2f5fba8 + b213963 commit ec8db5e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

queries/active_data_science_challenges

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ FROM
1111
active_data_science_challenges
1212
WHERE
1313
submission_end_date BETWEEN TO_DATE('@submitByFrom@ 00:00:00', '%Y-%m-%d %H:%M:%S') AND TO_DATE('@submitByTo@ 23:59:59', '%Y-%m-%d %H:%M:%S')
14+
AND CURRENT BETWEEN registration_start_date AND submission_end_date
1415
ORDER BY challenge_id

queries/upcoming_data_science_challenges

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,5 @@ FROM
1111
upcoming_data_science_challenges
1212
WHERE
1313
submission_end_date BETWEEN TO_DATE('@submitByFrom@ 00:00:00', '%Y-%m-%d %H:%M:%S') AND TO_DATE('@submitByTo@ 23:59:59', '%Y-%m-%d %H:%M:%S')
14+
AND registration_start_date > CURRENT
1415
ORDER BY challenge_id

0 commit comments

Comments
 (0)