Skip to content

Latest commit

 

History

History
83 lines (69 loc) · 3.87 KB

File metadata and controls

83 lines (69 loc) · 3.87 KB

Eigth Commit


CHAO-WEI : 2024_11_25 18:05

add up initial functions for mhwp calender and mhwp and debugs

  1. add the function for mhwp calender

Seventh Commit


CHAO-WEI : 2024_11_25 11:58

Fix up the bug of the previous commit related to logout within admin and mhwp, and modify the code of mhwp.py

  1. remove the doctor.py, as the role is not needed
  2. remove the code related to doctor which would create bugs.
  3. append the function that patients can change their username, email,emergency_email now
  4. append the function that admin can change others' email, emergency_email.

Sixth Commit


Arthur Hou: 2024_11_25 02:48

merge qxj's commit on mhwp's functions

  1. change all instance of mhw to mhwp for naming consistency.
  2. modify slight to mhwp.py for robustness.

Fifth Commit


Arthur Hou: 2024_11_24 20:09

major change to the code structure, suggest doing subsequent development based on this commit.

  1. Modularize the whole frame
    1. removed init.py from services. since the dependencies are now defined in each module themselves.
    2. Modularize user registration function register_user() to \services\registration.py
    3. Modularize login handling function handle_login() to \services\login.py; In handle_login() break each model's page into different function.
      • modularize admin's login page to handle_admin_menu() to \model\admin.py
      • modularize doctor's login page to handle_doctor_menu() to \model\doctor.py
      • modularize mhw's login page to handle_mhw_menu() to \model\mhwp.py
      • modularize patient's login page to handle_patient_menu() to \model\patient.py
  2. Add patient mood tracking page.
  3. Add patient mood tracking page.
    1. see \services\mood_tracking.py; the function is called when choose the corresponding selection in handle_patient_menu().
  4. fix the bug that cause the program to exit after registration.
  5. remove \data\patient_data.csv since it is redundant. All user info stored in \data\user_data.csv
  6. place all the csv file path in config.py. The csv file path for classes and functions are easily controlled in this way. State 'from config import XXX_DATA_PATH' at the top of your code.
  7. fix the bug that cause the program to exit after registration.
  8. remove \data\patient_data.csv since it is redundant. All user info stored in \data\user_data.csv
  9. place all the csv file path in config.py. The csv file path for classes and functions are easily controlled in this way. State 'from config import XXX_DATA_PATH' at the top of your code.

Fourth Commit


CHAO-WEI:

    1. Added roles of MHWP, Doctor into menu
    1. Change the entire frame

Third Commit


CHAO-WEI:

    1. Added the admin function which can allow admin to manage other users's data such as delete, update.
    1. user now can cancel their own account, and the admin can delete the user's data.
    1. admin should insert the code to login which is 0000
    1. The program can run, allowing the username and password to be compared with data in the CSV file
    1. user can change their own username and password
    1. registation would compare the username with the data in the CSV file, avoiding the same username.
    1. create the intit file to form the package file
    1. !need update for MHWP function!

Second Commit


CHAO-WEI:

    1. Removed the GUI file as we don't want to use it.
    1. Created the basic functionality of the program in user and implemented the entry logic in the main functionality.
    1. After testing, the table can be created and data can be inserted into the table.
    1. The program can run, allowing the username and password to be compared with data in the CSV file.

Date: 2024.11.14.1:04

First commit


CHAO-WEI:

    1. Create the project on GitHub. Commit the starter code from moodle.

**Date:**2024.11.11 1:06