asaf-kali / coursist

Open Source Workshop (67118) course team project
MIT License
6 stars 12 forks source link

Update and not add #110

Closed matanel-oren closed 4 years ago

matanel-oren commented 4 years ago

For issue https://github.com/asaf-kali/coursist/issues/8

Changed: When we want to add a group, if there exists CourseGroup with the same (CourseOccurence, class_type, mark), this group will be updated and wont be added along side. For the classes: those who didn't changed will not be changed, those who don't exist in the db will be added, and those who exist and not to be added - they are irrelevant and will be deleted.

matanel-oren commented 4 years ago

Sorry, rebased on master instead of develop. see https://github.com/asaf-kali/coursist/pull/111 instead.