Ravi1G / codejam-commandline

Automatically exported from code.google.com/p/codejam-commandline
Apache License 2.0
0 stars 0 forks source link

No automatic way to get the URL for the contest stage #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Mentions some way vaguely in the README but there's no further explanation.

Maybe you can default it to the current stage being run or something.

Original issue reported on code.google.com by veltzerd...@gmail.com on 11 May 2011 at 5:46

GoogleCodeExporter commented 9 years ago
There is no way to do that right now without writing some extra code and 
modifying the server. I think the best way would be to make the contest_id 
optional in the gcj_init_contest.py script and, if it not specified, ask the 
server the id of the running contest. If there is no running contest, fail with 
an user error.

I'm assigning a medium priority to this, if I don't need to modify the server I 
will do it. Otherwise, I'm move it to the low priority queue.

Original comment by jor...@google.com on 11 May 2011 at 8:47

GoogleCodeExporter commented 9 years ago
I found a way to get the current contest from the server without scraping the 
site. A fix is on the way for this. For the next version, if no contest_id is 
specified for ./gcj_init_contest.py the tool will try to get the id of the 
current contest and initialize the tool for it (if there is no current contest 
the user will get an error message).

Original comment by jor...@google.com on 11 May 2011 at 11:13

GoogleCodeExporter commented 9 years ago
The tool now autodetects the current contest if no contest is specified.

Original comment by jor...@google.com on 12 May 2011 at 5:39

GoogleCodeExporter commented 9 years ago
I uploaded this change to the svn repository, you can download a new version 
from it if you wish.

Original comment by jor...@google.com on 12 May 2011 at 6:40