江贤婷 
							
						 
						
							
							
								6c6734f1db 
								
							
								 
							
						 
						
							
							
								
								fix bug547  
							
							
							
						 
						
							2024-06-14 21:15:28 +08:00  
				
					
						
							
							
								
									
								
								江贤婷 
							
						 
						
							
							
								54d4eabef1 
								
							
								 
							
						 
						
							
							
								
								fix bug547  
							
							
							
						 
						
							2024-06-14 21:08:15 +08:00  
				
					
						
							
							
								
									
								
								江贤婷 
							
						 
						
							
							
								9725dfb9ef 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'Alpha-snapshot20230621' of  http://118.25.96.118:3000/mrlan/EnglishPal  into Alpha-snapshot20230621  
							
							
							
						 
						
							2024-06-14 21:06:05 +08:00  
				
					
						
							
							
								
									
								
								方晨 
							
						 
						
							
							
								35751c2c5f 
								
							
								 
							
						 
						
							
							
								
								描述你的更改  
							
							
							
						 
						
							2024-06-04 11:48:22 +08:00  
				
					
						
							
							
								
									
								
								李思楠 
							
						 
						
							
							
								8cbc7c9a0c 
								
							
								 
							
						 
						
							
							
								
								修复快速点击下一页按钮点击频率过快时页面跳转到未知名页面  
							
							
							
						 
						
							2024-05-24 22:00:08 +08:00  
				
					
						
							
							
								
									
								
								方晨 
							
						 
						
							
							
								35a6f1c828 
								
							
								 
							
						 
						
							
							
								
								fix  
							
							
							
						 
						
							2024-05-20 21:25:51 +08:00  
				
					
						
							
							
								
									
								
								方晨 
							
						 
						
							
							
								a42e63dc27 
								
							
								 
							
						 
						
							
							
								
								test bug555  
							
							
							
						 
						
							2024-05-20 19:23:31 +08:00  
				
					
						
							
							
								
									
								
								方晨 
							
						 
						
							
							
								6500eeca84 
								
							
								 
							
						 
						
							
							
								
								test bug  
							
							
							
						 
						
							2024-05-20 19:03:33 +08:00  
				
					
						
							
							
								
									
								
								方晨 
							
						 
						
							
							
								7d65782728 
								
							
								 
							
						 
						
							
							
								
								fixbug555  
							
							
							
						 
						
							2024-05-20 18:31:40 +08:00  
				
					
						
							
							
								
									
								
								丁晟晔 
							
						 
						
							
							
								ff6286cf01 
								
							
								 
							
						 
						
							
							
								
								删除 app/test/test_bug551_DingZeYu.py  
							
							
							
						 
						
							2024-05-06 11:42:32 +08:00  
				
					
						
							
							
								
									
								
								丁晟晔 
							
						 
						
							
							
								1d7e61d751 
								
							
								 
							
						 
						
							
							
								
								上传文件至 app/test  
							
							
							
						 
						
							2024-05-06 11:36:36 +08:00  
				
					
						
							
							
								
									
								
								范雯琦 
							
						 
						
							
							
								bf23f3f8a1 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'Alpha-snapshot20230621' of  http://118.25.96.118:3000/mrlan/EnglishPal  into Bug547_FanWenQi  
							
							
							
						 
						
							2024-04-22 12:14:35 +08:00  
				
					
						
							
							
								 
						
							
							
								6dbb1e2c06 
								
							
								 
							
						 
						
							
							
								
								No webdriver manager  
							
							
							
						 
						
							2024-04-21 15:40:35 +08:00  
				
					
						
							
							
								 
						
							
							
								374da86174 
								
							
								 
							
						 
						
							
							
								
								Why not use PyPI's webdriver-manager?  
							
							
							
						 
						
							2024-04-21 15:31:39 +08:00  
				
					
						
							
							
								
									
								
								范雯琦 
							
						 
						
							
							
								b4a4bd6723 
								
							
								 
							
						 
						
							
							
								
								Fix Bug547  
							
							
							
						 
						
							2024-04-11 23:21:24 +08:00  
				
					
						
							
							
								 
						
							
							
								64b9c51fab 
								
							
								 
							
						 
						
							
							
								
								Define a fixture that restarts flask app for each test run  
							
							
							
						 
						
							2024-04-10 14:44:23 +08:00  
				
					
						
							
							
								 
						
							
							
								77a3adb546 
								
							
								 
							
						 
						
							
							
								
								Define fixture 'restore_sqlite_database' that will be automatically used to restore the database before starting each test  
							
							
							
						 
						
							2024-04-09 20:06:30 +08:00  
				
					
						
							
							
								 
						
							
							
								a4608db424 
								
							
								 
							
						 
						
							
							
								
								Correct code comments  
							
							
							
						 
						
							2024-04-09 13:21:44 +08:00  
				
					
						
							
							
								 
						
							
							
								0a63c5354a 
								
							
								 
							
						 
						
							
							
								
								Make test_add_word.py work again  
							
							
							
						 
						
							2024-04-09 12:11:30 +08:00  
				
					
						
							
							
								 
						
							
							
								d9e28e3a2b 
								
							
								 
							
						 
						
							
							
								
								Tweak button size so it looks better on tablets.  
							
							
							
						 
						
							2023-08-13 21:08:13 +08:00  
				
					
						
							
							
								 
						
							
							
								41d1d9619d 
								
							
								 
							
						 
						
							
							
								
								Stress test code contributed by students  
							
							
							
						 
						
							2023-08-13 16:14:43 +08:00  
				
					
						
							
							
								 
						
							
							
								30b54f8023 
								
							
								 
							
						 
						
							
							
								
								Tweak button style  
							
							
							
						 
						
							2023-08-12 17:59:49 +08:00  
				
					
						
							
							
								 
						
							
							
								1e3ac7a379 
								
							
								 
							
						 
						
							
							
								
								Use larger buttons  
							
							
							
						 
						
							2023-08-12 17:42:25 +08:00  
				
					
						
							
							
								 
						
							
							
								8dd6a2a343 
								
							
								 
							
						 
						
							
							
								
								Use an arrow for Next Article or Previsou Article  
							
							
							
						 
						
							2023-08-12 17:36:49 +08:00  
				
					
						
							
							
								 
						
							
							
								d2f30daab1 
								
							
								 
							
						 
						
							
							
								
								Use PonyORM instead of class RecordQuery from UseSqlite.py. Incorporated changes from Pull Request 91 contributed by He Zhengzheng.  
							
							
							
						 
						
							2023-08-12 15:29:12 +08:00  
				
					
						
							
							
								 
						
							
							
								ed1d0fd714 
								
							
								 
							
						 
						
							
							
								
								Show only one place after the decimal point.  
							
							
							
						 
						
							2023-08-11 21:02:22 +08:00  
				
					
						
							
							
								 
						
							
							
								f3aa407c56 
								
							
								 
							
						 
						
							
							
								
								Use small letters for In and Up.  
							
							
							
						 
						
							2023-08-11 19:32:34 +08:00  
				
					
						
							
							
								 
						
							
							
								e9ac50422b 
								
							
								 
							
						 
						
							
							
								
								Make the flash message dismissible.  
							
							
							
						 
						
							2023-08-11 19:28:53 +08:00  
				
					
						
							
							
								 
						
							
							
								f4df263d6e 
								
							
								 
							
						 
						
							
							
								
								Flash message is informative. Why not add it?  
							
							
							
						 
						
							2023-08-11 19:14:51 +08:00  
				
					
						
							
							
								 
						
							
							
								dff560cc73 
								
							
								 
							
						 
						
							
							
								
								Indent code using web-mode.  
							
							
							
						 
						
							2023-08-11 18:39:36 +08:00  
				
					
						
							
							
								 
						
							
							
								c110de0393 
								
							
								 
							
						 
						
							
							
								
								Better spacing.  
							
							
							
						 
						
							2023-08-11 18:38:35 +08:00  
				
					
						
							
							
								 
						
							
							
								aaabd3e3bb 
								
							
								 
							
						 
						
							
							
								
								Enlarge button size so it is more table-friendly.  
							
							
							
						 
						
							2023-08-11 18:34:48 +08:00  
				
					
						
							
							
								 
						
							
							
								9da1a1cae6 
								
							
								 
							
						 
						
							
							
								
								Merge branch 'Alpha-snapshot20230621' of  http://121.4.94.30:3000/mrlan/EnglishPal  into Alpha-snapshot20230621  
							
							
							
						 
						
							2023-08-11 18:29:54 +08:00  
				
					
						
							
							
								
								Hui Lan 
							
						 
						
							
							
								9b1d60748d 
								
							
								 
							
						 
						
							
							
								
								Increase button size so that it is easier to use on tablets .  
							
							
							
						 
						
							2023-08-11 18:29:35 +08:00  
				
					
						
							
							
								 
						
							
							
								83bbd8f600 
								
							
								 
							
						 
						
							
							
								
								Improve the speed of loading the next article further after incorporating Chen Qiuwei et al.'s suggestions.  
							
							
							
						 
						
							2023-08-11 15:48:53 +08:00  
				
					
						
							
							
								 
						
							
							
								1b211f107d 
								
							
								 
							
						 
						
							
							
								
								Speed up loading next article  
							
							... 
							
							
							
							The key change is replacing "d1 = load_freq_history(path_prefix + 'static/frequency/ferquency.p)" with "d1 = load_freq_history(user_word_list)"
in function get_today_article() from Article.py.  Now, with a user_word_list of size about 500, the next article can be loaded within 100ms.
The new d1 is much smaller than the old one, therefore the following computation "d3 = get_difficulty_level_for_user(d1, d2)" is much faster.
The students did not feel that loading next article is slow; this is because their frequency.p is quite small.
Also log information in app/log.txt 
							
						 
						
							2023-08-11 11:59:48 +08:00  
				
					
						
							
							
								 
						
							
							
								10c291bed2 
								
							
								 
							
						 
						
							
							
								
								Highlight user difficulty level too.  
							
							
							
						 
						
							2023-08-10 19:12:30 +08:00  
				
					
						
							
							
								 
						
							
							
								6d15b65e3c 
								
							
								 
							
						 
						
							
							
								
								Make highlighting text difficulty level work.  
							
							
							
						 
						
							2023-08-10 19:09:15 +08:00  
				
					
						
							
							
								 
						
							
							
								e4f870c995 
								
							
								 
							
						 
						
							
							
								
								Create folder app/db with a README file.  
							
							
							
						 
						
							2023-08-10 15:25:42 +08:00  
				
					
						
							
							
								 
						
							
							
								06f896a33a 
								
							
								 
							
						 
						
							
							
								
								Update .gitignore  
							
							
							
						 
						
							2023-08-10 15:22:30 +08:00  
				
					
						
							
							
								
								Hui Lan 
							
						 
						
							
							
								dca76969eb 
								
							
								 
							
						 
						
							
							
								
								解决程序源文件更新了,但是 docker container 中的程序源文件没有更新的问题  
							
							... 
							
							
							
							问题出在 build.sh 中的 --mount type=volume,src=englishpal-db,target=/app 。
运行 docker container 时,会将整个 englishpal-db 对应的文件夹 /var/lib/docker/volumes/englishpal-db/_data
下面的内容拷贝到  docker container 里面的 /app 文件夹下面。
然而,/var/lib/docker/volumes/englishpal-db/_data 下面的源程序文件并不是最新的(比如其 main.py 是 7月17日的)。
将 target=/app 改为 target=/app/db。即可解决问题。 
							
						 
						
							2023-08-10 14:19:37 +08:00  
				
					
						
							
							
								
								Hui Lan 
							
						 
						
							
							
								00ae957b27 
								
							
								 
							
						 
						
							
							
								
								Try to figure out how to rebuild the image after updating the source code.  
							
							
							
						 
						
							2023-08-10 10:47:57 +08:00  
				
					
						
							
							
								 
						
							
							
								14ab63c85c 
								
							
								 
							
						 
						
							
							
								
								文章段落正确分段(在 lead class 中添加 white-space: pre-wrap;)  
							
							
							
						 
						
							2023-08-10 10:03:02 +08:00  
				
					
						
							
							
								 
						
							
							
								43419ab4b6 
								
							
								 
							
						 
						
							
							
								
								Enlarge text difficult level for one second (make it work using vanilla JavaScript)  
							
							
							
						 
						
							2023-07-17 16:28:08 +08:00  
				
					
						
							
							
								
								Hui Lan 
							
						 
						
							
							
								78d9a66e88 
								
							
								 
							
						 
						
							
							
								
								After loading the next article, show its difficulty level in a larger size for one second.  
							
							
							
						 
						
							2023-07-17 16:13:56 +08:00  
				
					
						
							
							
								
								Hui Lan 
							
						 
						
							
							
								6ea0b970a2 
								
							
								 
							
						 
						
							
							
								
								(1) Downgrade Flask version from 2.3.2 to 2.0.3 as installing the higher version reports errors.  This is probably due to my outdated python version (3.6).  (2) Persist SQLite database data in a docker volume.  Created a docker volume called englishpal-db using command 'docker volume create englishpal-db' and associate this volume with the docker image file directory /app.  So, now what happens in /app will be mirrored to englishpal-db.  Where is englishpal-db located?  Use command 'docker volume inspect englishpal-db' to find out.  
							
							
							
						 
						
							2023-07-17 07:45:38 +08:00  
				
					
						
							
							
								 
						
							
							
								20051e1a93 
								
							
								 
							
						 
						
							
							
								
								article.py: correct data format  
							
							
							
						 
						
							2023-07-14 09:17:11 +08:00  
				
					
						
							
							
								 
						
							
							
								5711f0e826 
								
							
								 
							
						 
						
							
							
								
								Update flask version in requirements.txt, use escape from markupsafe package.  
							
							
							
						 
						
							2023-07-14 09:11:02 +08:00  
				
					
						
							
							
								 
						
							
							
								cc92e5e29a 
								
							
								 
							
						 
						
							
							
								
								admin_service.py: non-programmers probably do not know int. So, use integer instead.  
							
							
							
						 
						
							2023-07-14 08:32:20 +08:00  
				
					
						
							
							
								 
						
							
							
								cd562a745c 
								
							
								 
							
						 
						
							
							
								
								admin_service.py: do not need to have seperate lines for a statement.  
							
							
							
						 
						
							2023-07-14 08:30:58 +08:00