Commit Graph

21 Commits

Author SHA1 Message Date
Ilya Patrzykat-Hannas
02c7b295c4 Small spelling correction (#8) 2021-05-02 11:33:32 +02:00
Nikolay Chechulin
cad9045fff Add requirements (#7) 2020-11-08 21:16:03 +01:00
Argha-Nilanjon-Nondi
b5b308380c Prettify sql statement (#5) 2020-10-18 19:15:47 +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
7385cb4add Minor change to support Chinese character in note feature 2017-07-30 12:19:01 +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
dad7935b01 Minor changes 2017-07-08 01:20:50 +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
XD-DENG
8ff8bb625c Refine layout template s.t. private/admin page hidden when not logged in 2017-07-03 19:58:46 +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
1fe6aa8cbf Use theme united of bootstrap 2017-07-02 22:05:55 +08:00
XD-DENG
0744dde6c1 Add feature 'Collapsing The Navigation Bar'
This requires Jquery.js and bootstrap.js
2017-07-02 11:05:38 +08:00
XD-DENG
4109f47b7d Minor changes 2017-07-01 22:18:33 +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
94a1a850b7 Minor changes 2017-07-01 22:06:05 +08:00
XD-DENG
22130539c3 [1] Refine; [2] Added README 2017-07-01 22:01:03 +08:00
XD-DENG
b34ba55cd2 initial commit 2017-07-01 18:37:53 +08:00