CrapTheCoder / UpCode

Upload accepted solutions from CodeChef and CodeForces to GitHub
45 stars 15 forks source link

fixed-codechef-error #8

Closed en1gm479 closed 1 year ago

en1gm479 commented 1 year ago

Hey, while trying to upload Codechef solutions script is showing the following error as mentioned in issue(#7): ERROR:root:'NoneType' object is not subscriptable FOR None

Fixed the errror by updating the scripts

You can check my terminal output here and repo upload here

@crapthecoder please go through it once and merge it (if no errrors)

CrapTheCoder commented 1 year ago

I thought support for CodeChef's API was removed! Thanks a lot, it works perfectly now!

en1gm479 commented 1 year ago

They're using the API but endpoints have been changed I guess!

en1gm479 commented 1 year ago

@crapthecoder Is there any way so that our solutions got automatically sync with the repo whenever we submit on onlines judges or atleast on a weekly basis?

CrapTheCoder commented 1 year ago

Sadly, I feel like it would be too much work when people could just run the program every once in a while anyway. You just have to end it when it says that it has already uploaded a solution, as it goes through the recent submissions first.

en1gm479 commented 1 year ago

If anyone has a good command over GitHub workflow then this whole process can be automated. I've found a similar implementation for leetcode platform here. Nvm, you've written a wonderful script :)

CrapTheCoder commented 1 year ago

I'll definitely go through the leetcode sync project. Also thanks! :D