Add zerotime attribute to competition info

This commit is contained in:
Eric Teutsch 2024-03-26 12:37:01 -04:00
parent 11942302fa
commit 65f6fc6868
6 changed files with 5833 additions and 2 deletions

3023
code/English_spellcheck.txt Normal file

File diff suppressed because it is too large Load Diff

2800
code/English_translated.txt Normal file

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,7 @@
<b>Example:</b> <b>Example:</b>
<pre> <pre>
*MOPComplete> *MOPComplete>
*competition date="2015-09-06" organizer="Orienteringsklubben Linn&eacute;" homepage="http://www.oklinne.nu">Stafett-DM, Uppland*/competition> *competition date="2015-09-06" organizer="Orienteringsklubben Linn&eacute;" homepage="http://www.oklinne.nu" zerotime="216000">Stafett-DM, Uppland*/competition>
*/MOPComplete> */MOPComplete>
</pre> </pre>

View File

@ -130,7 +130,12 @@ bool InfoCompetition::synchronize(oEvent &oe, bool onlyCmp, const set<int> &incl
homepage = oe.getDCI().getString("Homepage"); homepage = oe.getDCI().getString("Homepage");
changed = true; changed = true;
} }
if (oe.getZeroTimeNum() != zerotime) {
zerotime = oe.getZeroTimeNum();
changed = true;
}
if (changed) if (changed)
needCommit(*this); needCommit(*this);
@ -452,6 +457,7 @@ void InfoCompetition::serialize(xmlbuffer &xml, bool diffOnly) const {
prop.push_back(make_pair("date", date)); prop.push_back(make_pair("date", date));
prop.push_back(make_pair("organizer", organizer)); prop.push_back(make_pair("organizer", organizer));
prop.push_back(make_pair("homepage", homepage)); prop.push_back(make_pair("homepage", homepage));
prop.emplace_back("zerotime", itow(zerotime));
xml.write("competition", prop, name); xml.write("competition", prop, name);
} }

View File

@ -221,6 +221,7 @@ private:
wstring date; wstring date;
wstring organizer; wstring organizer;
wstring homepage; wstring homepage;
int zerotime;
protected: protected:
bool forceComplete; bool forceComplete;

1
code/untranslated.txt Normal file
View File

@ -0,0 +1 @@
Patrol result = Patrol result