Skip to content

Commit

Permalink
changed erd with new columns for student
Browse files Browse the repository at this point in the history
  • Loading branch information
InbarShirizly committed Oct 27, 2020
1 parent 107e87c commit cc15b21
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Binary file modified docs/Images for README/ERD zoom attendnace check.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion server/server/api/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ def post(self, class_id, report_id=None):
args = self._post_args.parse_args()

students_df = pd.read_sql(StudentModel.query.filter_by(class_id=class_id).statement, con=db.engine)
report_object = Attendance(args['chat_file'], students_df, ['name', "id_number", "phone"], args['time_delta'], args['first_sentence'], args['not_included_zoom_users'])
report_object = Attendance(args['chat_file'], students_df,
['name', "id_number", "phone", "country", "country_code"],
args['time_delta'], args['first_sentence'],
args['not_included_zoom_users']) #TODO: should get "filters" from config

new_report = ReportModel(description=args['description'], report_time=args["date"], class_id=class_id)
db.session.add(new_report)
Expand Down

0 comments on commit cc15b21

Please sign in to comment.