Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rex Dri
Rex Dri
Commits
f0be1be1
Unverified
Commit
f0be1be1
authored
May 30, 2020
by
Gautier D
Committed by
Florent Chehab
May 31, 2020
Browse files
feat(backend): copy cron tasks without decorators to be executed manually
parent
37062c64
Changes
1
Hide whitespace changes
Inline
Side-by-side
backend/_cron_tasks.py
0 → 100644
View file @
f0be1be1
from
backend_app.models.exchange
import
update_denormalized_univ_major_minor
from
backend_app.models.university
import
update_denormalized_univ_field
# noqa: E402
from
external_data.management.commands.utils
import
FixerData
,
UtcData
# noqa: E402
from
base_app.management.commands.clean_user_accounts
import
(
ClearUserAccounts
,
ClearSessions
,
)
from
stats_app.compute_stats
import
update_all_stats
def
update_currencies
():
FixerData
().
update
()
def
update_utc_ent
():
UtcData
().
update
()
def
update_extra_denormalization
():
update_denormalized_univ_major_minor
()
update_denormalized_univ_field
()
def
clear_and_clean_sessions
():
ClearUserAccounts
.
run
()
ClearSessions
.
run
()
def
update_daily_stats
():
update_all_stats
()
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment