Polygon importer: poor choice of contest name
When importing a polygon format contest with cmsImporter <directoryName>, the contest is created with name "directoryName". I don't think this is an optimal choice for the name, since this directory structure is often temporary and poorly named. Can something not be taken from the contest.xml names tag?
P.S. I know you can change it from AWS, but I think it should be better from the start.
For the record, this is what a contest.xml looks like:
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<problem revision="4" short-name="somma" url="https://polygon.codeforces.com/p/wil93/somma">
<names>
<name language="italian" value="Somma"/>
</names>
<statements>
<statement charset="UTF-8" language="italian" path="statements/italian/problem.tex" type="application/x-tex"/>
<statement language="italian" path="statements/.pdf/italian/problem.pdf" type="application/pdf"/>
<statement charset="UTF-8" language="italian" path="statements/.html/italian/problem.html" type="text/html"/>
</statements>
.....other stuff....
IMHO we could just take the short-name attribute of the <problem> tag. I think it would be easy to write a patch for polygon.py and create a pull request. I don't think @stefano-maggiolo would have any objection, but to be sure we can mention him here :stuck_out_tongue: