* feat(api): invitation token to add team members * feat(api): invitation link change password * feat(db): changed base_auth structure * feat(api): invitation link - regenerate/reset * feat(api): invitation link - restore deleted user * feat(api): invitation link for forget password * feat(api): changed email body for invite user and reset password
18 lines
441 B
Python
18 lines
441 B
Python
from chalice import Blueprint
|
|
from chalice import Cron
|
|
from chalicelib import _overrides
|
|
from chalicelib.core import reset_password, weekly_report, jobs
|
|
|
|
app = Blueprint(__name__)
|
|
_overrides.chalice_app(app)
|
|
|
|
|
|
@app.schedule(Cron('0', '*', '?', '*', '*', '*'))
|
|
def run_scheduled_jobs(event):
|
|
jobs.execute_jobs()
|
|
|
|
|
|
# Run every monday.
|
|
@app.schedule(Cron('5', '0', '?', '*', 'MON', '*'))
|
|
def weekly_report2(event):
|
|
weekly_report.cron()
|