akiross / PyConXRiddle

The riddle for PyCon X
GNU General Public License v3.0
1 stars 0 forks source link

Avoid duplicate lines when saving user progress #12

Closed akiross closed 5 years ago

akiross commented 5 years ago

User can, right now, solve twice the same level. This is fine in the general case (and forbidding to do so is another issue that could be regulated via config), but we should avoid filling the DB with duplicated lines. In the progress table, pairs (user, solved level) should be unique.