Update event.py
Update event.py

Calendar Bug: When you create an event and repeat it to a certain date, it repeats the event from the start date to the last day of the calendar on the page.

Fix: it gets the repeat_till data from the database and limits the event to the proposed date.
indictranstech/fbd_frappe,mbauskar/tele-frappe,ShashaQin/frappe,pranalik/frappe-bb,maxtorete/frappe,gangadhar-kadam/verve_test_frappe,shitolepriya/test-frappe,Tejal011089/digitales_frappe,tundebabzy/frappe,indictranstech/frappe-digitales,indictranstech/omnitech-frappe,gangadhar-kadam/verve_test_frappe,elba7r/builder,indautgrp/frappe,reachalpineswift/frappe-bench,erpletzerp/letzerpcore,rohitwaghchaure/frappe,gangadharkadam/frappecontribution,gangadharkadam/saloon_frappe,rohitwaghchaure/frappe-digitales,gangadharkadam/v6_frappe,gangadhar-kadam/verve_test_frappe,indictranstech/omnitech-frappe,indictranstech/tele-frappe,indictranstech/Das_frappe,anandpdoshi/frappe,shitolepriya/test-frappe,mbauskar/helpdesk-frappe,adityahase/frappe,mhbu50/frappe,elba7r/frameworking,mbauskar/frappe,indictranstech/ebuy-now-frappe,saurabh6790/frappe,ESS-LLP/frappe,bohlian/frappe,indictranstech/internal-frappe,vqw/frappe,gangadharkadam/vlinkfrappe,chdecultot/frappe,StrellaGroup/frappe,indictranstech/reciphergroup-frappe,gangadharkadam/letzfrappe,sbktechnology/trufil-frappe,nerevu/frappe,gangadhar-kadam/verve_live_frappe,indictranstech/tele-frappe,aboganas/frappe,gangadhar-kadam/helpdesk-frappe,rohitwaghchaure/vestasi-frappe,pawaranand/phr-frappe,almeidapaulopt/frappe,gangadhar-kadam/verve_live_frappe,Tejal011089/digitales_frappe,Tejal011089/digitales_frappe,mbauskar/Das_frappe,indictranstech/trufil-frappe,pawaranand/phr_frappe,mbauskar/helpdesk-frappe,hernad/frappe,gangadharkadam/vervefrappe,ESS-LLP/frappe,saurabh6790/test-frappe,indictranstech/frappe,mbauskar/omnitech-frappe,praba230890/frappe,erpletzerp/letzerpcore,mbauskar/omnitech-frappe,deveninfotech/deven-frappe,manassolanki/frappe,rmehta/frappe,suyashphadtare/sajil-frappe,pawaranand/phr_frappe,frappe/frappe,indictranstech/reciphergroup-frappe,gangadharkadam/letzfrappe,gangadhar-kadam/helpdesk-frappe,saurabh6790/frappe,hatwar/buyback-frappe,vjFaLk/frappe,RicardoJohann/frappe,neilLasrado/frappe,rmehta/frappe,RicardoJohann/frappe,ShashaQin/frappe,indictranstech/reciphergroup-frappe,indictranstech/frappe-digitales,deveninfotech/deven-frappe,saurabh6790/frappe,indictranstech/trufil-frappe,indictranstech/osmosis-frappe,pranalik/frappe-bb,reachalpineswift/frappe-bench,suyashphadtare/propshikhari-frappe,mhbu50/frappe,anandpdoshi/frappe,neilLasrado/frappe,indictranstech/Das_frappe,saurabh6790/phr-frappe,gangadhar-kadam/verve_frappe,vCentre/vFRP-6233,rohitwaghchaure/vestasi-frappe,gangadharkadam/saloon_frappe,mbauskar/phr-frappe,mbauskar/frappe,hernad/frappe,gangadharkadam/v4_frappe,maxtorete/frappe,MaxMorais/frappe,rohitwaghchaure/vestasi-frappe,manassolanki/frappe,gangadharkadam/vlinkfrappe,pombredanne/frappe,sbktechnology/trufil-frappe,vjFaLk/frappe,drukhil/frappe,ashokrajbathu/secondrep,frappe/frappe,anandpdoshi/frappe,pawaranand/phr_frappe,indictranstech/Das_frappe,indictranstech/phr-frappe,gangadharkadam/letzfrappe,gangadharkadam/v6_frappe,pombredanne/frappe,gangadharkadam/frappecontribution,letzerp/framework,saurabh6790/test-frappe,nerevu/frappe,mbauskar/omnitech-demo-frappe,neilLasrado/frappe,saurabh6790/phr-frappe,Amber-Creative/amber-frappe,deveninfotech/deven-frappe,mbauskar/tele-frappe,deveninfotech/deven-frappe,adityahase/frappe,StrellaGroup/frappe,rohitwaghchaure/frappe,vCentre/vFRP-6233,indictranstech/ebuy-now-frappe,letzerp/framework,Amber-Creative/amber-frappe,sbktechnology/sap_frappe,jevonearth/frappe,indictranstech/internal-frappe,gangadharkadam/vervefrappe,mbauskar/frappe,indictranstech/frappe,nerevu/frappe,BhupeshGupta/frappe,adityahase/frappe,mbauskar/helpdesk-frappe,tundebabzy/frappe,ESS-LLP/frappe,frappe/frappe,saguas/frappe,aboganas/frappe,indautgrp/frappe,paurosello/frappe,gangadharkadam/saloon_frappe_install,indictranstech/tele-frappe,chdecultot/frappe,maxtorete/frappe,BhupeshGupta/frappe,pombredanne/frappe,almeidapaulopt/frappe,mbauskar/omnitech-demo-frappe,gangadharkadam/vervefrappe,gangadharkadam/saloon_frappe_install,vqw/frappe,ashokrajbathu/secondrep,indictranstech/frappe-digitales,gangadharkadam/saloon_frappe,pombredanne/frappe,gangadharkadam/v5_frappe,gangadharkadam/v5_frappe,sbkolate/sap_frappe_v6,gangadharkadam/v6_frappe,mbauskar/phr-frappe,gangadharkadam/v5_frappe,indictranstech/phr-frappe,saurabh6790/phr-frappe,rohitwaghchaure/frappe,elba7r/builder,saurabh6790/phr-frappe,sbktechnology/sap_frappe,rohitwaghchaure/vestasi-frappe,tmimori/frappe,Amber-Creative/amber-frappe,indictranstech/frappe,indictranstech/frappe,vCentre/vFRP-6233,geo-poland/frappe,jevonearth/frappe,ashokrajbathu/secondrep,aboganas/frappe,rohitwaghchaure/frappe-digitales,gangadhar-kadam/verve_test_frappe,saguas/frappe,praba230890/frappe,indictranstech/reciphergroup-frappe,drukhil/frappe,Tejal011089/digitales_frappe,almeidapaulopt/frappe,gangadhar-kadam/helpdesk-frappe,gangadhar-kadam/verve_frappe,vjFaLk/frappe,gangadharkadam/v6_frappe,maxtorete/frappe,indictranstech/tele-frappe,rohitwaghchaure/frappe-digitales,gangadharkadam/v4_frappe,gangadhar-kadam/verve_frappe,ShashaQin/frappe,almeidapaulopt/frappe,gangadharkadam/frappecontribution,gangadhar-kadam/verve_frappe,mbauskar/frappe,indictranstech/osmosis-frappe,saurabh6790/frappe,sbktechnology/sap_frappe,gangadharkadam/v4_frappe,paurosello/frappe,gangadhar-kadam/verve_live_frappe,StrellaGroup/frappe,mbauskar/tele-frappe,paurosello/frappe,manassolanki/frappe,indictranstech/ebuy-now-frappe,pranalik/frappe-bb,suyashphadtare/propshikhari-frappe,bohlian/frappe,suyashphadtare/sajil-frappe,suyashphadtare/propshikhari-frappe,sbkolate/sap_frappe_v6,saurabh6790/test-frappe,ESS-LLP/frappe,RicardoJohann/frappe,indictranstech/omnitech-frappe,hernad/frappe,aboganas/frappe,yashodhank/frappe,vCentre/vFRP-6233,pranalik/frappe-bb,pawaranand/phr-frappe,vqw/frappe,nerevu/frappe,paurosello/frappe,hernad/frappe,suyashphadtare/sajil-final-frappe,indictranstech/trufil-frappe,yashodhank/frappe,praba230890/frappe,adityahase/frappe,gangadharkadam/vervefrappe,tmimori/frappe,mbauskar/omnitech-demo-frappe,gangadharkadam/saloon_frappe,pawaranand/phr_frappe,erpletzerp/letzerpcore,rohitwaghchaure/frappe-digitales,suyashphadtare/sajil-frappe,pawaranand/phr-frappe,manassolanki/frappe,bcornwellmott/frappe,suyashphadtare/sajil-final-frappe,gangadharkadam/letzfrappe,indictranstech/Das_frappe,gangadharkadam/v5_frappe,Amber-Creative/amber-frappe,gangadharkadam/saloon_frappe_install,bohlian/frappe,indautgrp/frappe,suyashphadtare/propshikhari-frappe,indictranstech/omnitech-frappe,indictranstech/internal-frappe,mbauskar/Das_frappe,bcornwellmott/frappe,geo-poland/frappe,ashokrajbathu/secondrep,mbauskar/phr-frappe,bcornwellmott/frappe,mbauskar/tele-frappe,letzerp/framework,praba230890/frappe,gangadharkadam/frappecontribution,sbkolate/sap_frappe_v6,elba7r/frameworking,yashodhank/frappe,BhupeshGupta/frappe,mhbu50/frappe,jevonearth/frappe,indictranstech/fbd_frappe,shitolepriya/test-frappe,reachalpineswift/frappe-bench,mbauskar/Das_frappe,rohitwaghchaure/frappe,indictranstech/ebuy-now-frappe,hatwar/buyback-frappe,drukhil/frappe,mhbu50/frappe,geo-poland/frappe,mbauskar/Das_frappe,bcornwellmott/frappe,gangadhar-kadam/helpdesk-frappe,elba7r/builder,sbkolate/sap_frappe_v6,indictranstech/phr-frappe,tmimori/frappe,suyashphadtare/sajil-final-frappe,saguas/frappe,elba7r/builder,mbauskar/helpdesk-frappe,mbauskar/omnitech-frappe,gangadharkadam/vlinkfrappe,rmehta/frappe,rmehta/frappe,mbauskar/omnitech-demo-frappe,tundebabzy/frappe,MaxMorais/frappe,mbauskar/omnitech-frappe,indictranstech/osmosis-frappe,RicardoJohann/frappe,ShashaQin/frappe,saguas/frappe,vqw/frappe,gangadharkadam/v4_frappe,indictranstech/frappe-digitales,chdecultot/frappe,bohlian/frappe,saurabh6790/test-frappe,reachalpineswift/frappe-bench,gangadharkadam/vlinkfrappe,chdecultot/frappe,erpletzerp/letzerpcore,indictranstech/internal-frappe,neilLasrado/frappe,tmimori/frappe,shitolepriya/test-frappe,MaxMorais/frappe,mbauskar/phr-frappe,indictranstech/fbd_frappe,hatwar/buyback-frappe,BhupeshGupta/frappe,letzerp/framework,sbktechnology/trufil-frappe,indictranstech/fbd_frappe,sbktechnology/sap_frappe,drukhil/frappe,jevonearth/frappe,elba7r/frameworking,MaxMorais/frappe,gangadhar-kadam/verve_live_frappe,anandpdoshi/frappe,gangadharkadam/saloon_frappe_install,yashodhank/frappe,elba7r/frameworking,indictranstech/phr-frappe,tundebabzy/frappe,indautgrp/frappe,indictranstech/trufil-frappe,vjFaLk/frappe,indictranstech/osmosis-frappe,sbktechnology/trufil-frappe,hatwar/buyback-frappe