I fixed a problem with the campaign server...

...where old translation information wasn't being cleared and so after
multiple uploads the same language would be listed multiple times.
This commit is contained in:
Bruno Wolff III 2005-10-13 00:56:21 +00:00
parent 568059bf5a
commit 30646880ea
2 changed files with 3 additions and 0 deletions

View file

@ -52,6 +52,8 @@ SVN trunk:
* filter by language of translation
* campaign_list response now contains the time the request was processed
* campaign_list response now contains information about translations
* problem with duplicate translations being saved with each upload has been
fixed.
* utils: added weblist.pl and webtgz.pl web interface programs
* updated weblist.pl to display translation information
* updated weblist.pl and webtgz.pl to use standard wesnoth logo banner

View file

@ -212,6 +212,7 @@ void campaign_server::run()
(*data)["version"] = (*campaign)["version"];
(*data)["timestamp"] = (*campaign)["timestamp"];
(*data)["icon"] = (*campaign)["icon"];
(*campaign).clear_children("translation");
find_translations(*data, *campaign);
{
scoped_ostream campaign_file = ostream_file(filename);