-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PC-32007)[API] feat: add special event importer
- Loading branch information
1 parent
13d4515
commit 5ba0b80
Showing
4 changed files
with
392 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import logging | ||
|
||
from pcapi.scheduled_tasks import decorators as cron_decorators | ||
from pcapi.utils.blueprint import Blueprint | ||
|
||
from . import api | ||
|
||
|
||
blueprint = Blueprint(__name__, __name__) | ||
logger = logging.getLogger(__name__) | ||
|
||
|
||
@blueprint.cli.command("import_special_event_answers") | ||
@cron_decorators.log_cron | ||
def import_book_club_chronicle() -> None: | ||
api.retrieve_data_from_typeform() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.