Loading

Paste #pn9ytwehb

  1. diff -r 25f65e3727d8 webtranslate/pages/upload_language.py
  2. --- a/webtranslate/pages/upload_language.py Sat Sep 26 14:08:48 2015 +0200
  3. +++ b/webtranslate/pages/upload_language.py Mon Nov 23 20:22:34 2015 +0100
  4. @@ -211,7 +211,11 @@
  5.          lng.set_modified()
  6.  
  7.      config.cache.save_pmd(pmd)
  8. -    pmd.create_statistics(None) # Update all languages.
  9. +
  10. +    if is_base:
  11. +        pmd.create_statistics(None) # Update all languages.
  12. +    else:
  13. +        pmd.create_statistics(lng)
  14.  
  15.      message = "Successfully uploaded language '" + lng.name +"' " + utils.get_datetime_now_formatted()
  16.      redirect("/project/" + projname + '?message=' + message)
  17.  

Comments