Skip to content

Commit

Permalink
Prepsani SI v karte Zavodnik prepise SI ve vsech etapach
Browse files Browse the repository at this point in the history
  • Loading branch information
fvacek committed Aug 10, 2020
1 parent 9e707f3 commit 8ddcff6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ bool CompetitorDocument::saveData()
if(siid_dirty) {
int competitor_id = dataId().toInt();
qf::core::sql::Query q(model()->connectionName());
q.prepare("UPDATE runs SET siId=:siId WHERE competitorId=:competitorId AND (siId IS NULL OR siId = 0)", qf::core::Exception::Throw);
q.prepare("UPDATE runs SET siId=:siId WHERE competitorId=:competitorId", qf::core::Exception::Throw);
q.bindValue(":competitorId", competitor_id);
q.bindValue(":siId", siid());
q.exec(qf::core::Exception::Throw);
Expand Down

0 comments on commit 8ddcff6

Please sign in to comment.