Commit Graph

11 Commits

Author SHA1 Message Date
Ilya Patrzykat-Hannas
48942f9e4a Initializing flash messages and adding url_for() in templates (#9)
* adding url_for to prevent errors when changing routes

* Update layout.html

* Update app.py
2021-05-03 07:29:46 +02:00
XD-DENG
793c1fa130 1. use .encode(); 2. use placeholder for SQL INSERT
1. this makes the code able to run on both Python 2 and 3 (previous version only support 2);

2. Use placeholder to prepare SQL INSERT statement. This is much more proper than using .format to prepare the statement. One obvious advantage is it can handle single/double quotations marks very perfectly. The previou version will fail if there is single quotation mark in the values that I'm going to insert.
2018-04-17 22:09:38 +08:00
XD-DENG
961f17c2f5 Ensure image files & Record can be cleaned when a user is removed 2017-07-08 11:39:59 +08:00
XD-DENG
4b693ddb69 User can delete the image they uploaded 2017-07-08 11:22:21 +08:00
XD-DENG
0e73da4df9 Add 'Image Upload' Feature
Each user can upload image to the system. The images from different users where be separated.
2017-07-08 11:02:46 +08:00
XD-DENG
c072aa771d For Private page, add feature 'take note'
This makes this app much more meaningful. For this feature, a new database table is added. More complicated logics are also needed, for example, we use hash(user ID + timestamp + note contant) as the unique id of each note (it's necessary when we try to delete a note)
2017-07-03 22:34:58 +08:00
Xiaodong
023a149be9 Refine Variable name & Comment for better readibility (#1)
* Update app.py

* Update admin.html
2017-07-03 18:12:54 +08:00
XD-DENG
4a2b3fabab Refine logic adding new ID 2017-07-03 15:47:10 +08:00
XD-DENG
9ed5edf3ff [1]Minor UI Change;[2]Refine logic adding new ID 2017-07-03 15:22:00 +08:00
XD-DENG
3d5f4e4c6b [1] Refine README; [2] Use default setting when run the app 2017-07-01 22:11:06 +08:00
XD-DENG
b34ba55cd2 initial commit 2017-07-01 18:37:53 +08:00