Closed proffapt closed 1 year ago
One issue needs to be taken care of. Suppose there occurs some error in finding the course name. The data.txt
wont have it and the user needs to enter it manually. In such a senario, we should warn the user about running generate_ics.py
One issue needs to be taken care of. Suppose there occurs some error in finding the course name. The
data.txt
wont have it and the user needs to enter it manually. In such a senario, we should warn the user about runninggenerate_ics.py
These are edge cases, obviously needed to be handled.
@ashwinpra reply here if you will do it, so that it will be assigned to you
@ashwinpra reply here if you will do it, so that it will be assigned to you
Sure, I can work on it.
I can think of two options:
generate_ics.py
as a subprocess within gyft.py
main
function from generate_ics.py
, and all the functions can be imported into gyft.py
, and again based on user input, the functions are executed as required to generate ICS within gyft.py
itselfSecond option would be better I suppose
The second method is preferable.
Being worked on #96
Instead of just printing to use
generate_ics.py
in the end ofgyft.py
, prompt the user for confirmation whether they want ics file or not and if yes we can just directly execute thegenerate_ics.py
script.Same goes for
add_events.py
And integrate
del_events.py
via a cli argument what they want to do. Basically one should only usegyft.py
for whatever their need be