improvment-NiWeiCong #50

Open
niweicong wants to merge 3 commits from improvment-NiWeiCong into master

[Task]

Use Flask and blueprint to implement routing(show_bp) and the secret token to query the user's words which stored in wordfreqapp.db.

[What we have done]

we added wordCMD.py and words.sql and changed the main.py to register blueprint.

[Manual]

In URL, enter something like this to search user's words.
http://127.0.0.1:5000/show/<name>/?token=<token>

<name> : user's name
<token> : only correct token that could admit our permissions.

[Video Link]

【Flask + BluePrint】EnglishPal Python开发,用路由和命令获取用户生词簿
https://www.bilibili.com/video/BV1d34y157sp?spm_id_from=333.999.0.0&vd_source=6f9c9d6e3a6617216707653d142b6f20

# [Task] Use Flask and blueprint to implement routing(show_bp) and the secret token to query the user's words which stored in wordfreqapp.db. # [What we have done] we added wordCMD.py and words.sql and changed the main.py to register blueprint. # [Manual] In URL, enter something like this to search user's words. http://127.0.0.1:5000/show/\<name>/?token=\<token> \<name> : user's name \<token> : only correct token that could admit our permissions. # [Video Link] 【Flask + BluePrint】EnglishPal Python开发,用路由和命令获取用户生词簿 https://www.bilibili.com/video/BV1d34y157sp?spm_id_from=333.999.0.0&vd_source=6f9c9d6e3a6617216707653d142b6f20
niweicong added 2 commits 2022-06-18 22:46:16 +08:00
zhangyiteng approved these changes 2022-12-06 19:49:11 +08:00
mrlan requested review from zhangyiteng 2022-12-08 21:53:43 +08:00
qianjunqi added 1 commit 2023-05-06 19:05:17 +08:00
qianjunqi closed this pull request 2023-05-06 19:13:48 +08:00
qianjunqi reopened this pull request 2023-05-06 19:14:12 +08:00
qianjunqi closed this pull request 2023-05-06 19:15:54 +08:00
qianjunqi reopened this pull request 2023-05-06 19:19:38 +08:00
This pull request has changes conflicting with the target branch.
  • app/main.py
You can also view command line instructions.

Step 1:

From your project repository, check out a new branch and test the changes.
git checkout -b improvment-NiWeiCong master
git pull origin improvment-NiWeiCong

Step 2:

Merge the changes and update on Gitea.
git checkout master
git merge --no-ff improvment-NiWeiCong
git push origin master
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mrlan/EnglishPal#50
There is no content yet.