Skip to content

feat: added function in cron.py for codechef app#83

Merged
abhishekangale merged 2 commits into
Code-dig-ger:feature/codecheffrom
abhishekangale:feature/codechef
Oct 28, 2021
Merged

feat: added function in cron.py for codechef app#83
abhishekangale merged 2 commits into
Code-dig-ger:feature/codecheffrom
abhishekangale:feature/codechef

Conversation

@abhishekangale
Copy link
Copy Markdown
Collaborator

Description

  • Codechef App :

    Moved some of the model_utils functions into cron.py (eg. OffsetLoader) through which we can update codechef contests / problems on a repeated schedule.

@abhishekangale abhishekangale added the enhancement New feature or request label Oct 28, 2021
contest_problems_info = ProblemData(contestId)
create_or_update_codechefProblem(contest_problems_info)

def update_AllContests():
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This function will only run through cron right? Then keep this only in file, rest in utils.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've made the requested changes. Please review.

@abhishekangale abhishekangale merged commit 1456f39 into Code-dig-ger:feature/codechef Oct 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants