Skip to content

Commit

Permalink
Merge pull request #788 from ladyisatis/feature/bugfix-csc
Browse files Browse the repository at this point in the history
Bugfix: add mode 'wb' back to open
  • Loading branch information
joaorb64 authored Nov 20, 2024
2 parents c7f50e3 + ca34dd6 commit a372a5b
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 10 deletions.
Binary file modified TSH.exe
Binary file not shown.
3 changes: 2 additions & 1 deletion src/Helpers/TSHCountryHelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def run(self):
r = requests.get(url, allow_redirects=True)
tmp_file = TSHResolve('./tmp/countries+states+cities.json.tmp')

open(tmp_file).write(r.content)
open(tmp_file, 'wb').write(r.content)

try:
# Test if downloaded JSON is valid
Expand All @@ -53,6 +53,7 @@ def run(self):
TSHCountryHelper.LoadCountries()
except:
logger.error("Countries files download failed")
os.remove(tmp_file)
except Exception as e:
logger.error(
"Could not update countries+states+cities.json: "+str(e))
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/TSH_de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1499,7 +1499,7 @@ p, li { white-space: pre-wrap; }
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../Helpers/TSHCountryHelper.py" line="181"/>
<location filename="../Helpers/TSHCountryHelper.py" line="182"/>
<source>Custom Flags</source>
<translation type="unfinished"></translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/TSH_en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,7 @@ p, li { white-space: pre-wrap; }
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../Helpers/TSHCountryHelper.py" line="181"/>
<location filename="../Helpers/TSHCountryHelper.py" line="182"/>
<source>Custom Flags</source>
<translation type="unfinished"></translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/TSH_es.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,7 @@ p, li { white-space: pre-wrap; }
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../Helpers/TSHCountryHelper.py" line="181"/>
<location filename="../Helpers/TSHCountryHelper.py" line="182"/>
<source>Custom Flags</source>
<translation type="unfinished"></translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/TSH_fr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1559,7 +1559,7 @@ p, li { white-space: pre-wrap; }
<translation>Veuillez vérifier que votre URL de tournoi est correctement formatée et pointe vers un évènement existant, puis réessayer.</translation>
</message>
<message>
<location filename="../Helpers/TSHCountryHelper.py" line="181"/>
<location filename="../Helpers/TSHCountryHelper.py" line="182"/>
<source>Custom Flags</source>
<translation>Drapeaux additionnels</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/TSH_it.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,7 @@ p, li { white-space: pre-wrap; }
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../Helpers/TSHCountryHelper.py" line="181"/>
<location filename="../Helpers/TSHCountryHelper.py" line="182"/>
<source>Custom Flags</source>
<translation type="unfinished"></translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/TSH_ja.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1515,7 +1515,7 @@ p, li { white-space: pre-wrap; }
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../Helpers/TSHCountryHelper.py" line="181"/>
<location filename="../Helpers/TSHCountryHelper.py" line="182"/>
<source>Custom Flags</source>
<translation type="unfinished"></translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/TSH_pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1578,7 +1578,7 @@ p, li { white-space: pre-wrap; }
<translation>Certifique-se de que a URL está no formato correto e que o evento existe.</translation>
</message>
<message>
<location filename="../Helpers/TSHCountryHelper.py" line="181"/>
<location filename="../Helpers/TSHCountryHelper.py" line="182"/>
<source>Custom Flags</source>
<translation>Bandeiras customizadas</translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/TSH_zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,7 @@ p, li { white-space: pre-wrap; }
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../Helpers/TSHCountryHelper.py" line="181"/>
<location filename="../Helpers/TSHCountryHelper.py" line="182"/>
<source>Custom Flags</source>
<translation type="unfinished"></translation>
</message>
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/TSH_zh-TW.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1450,7 +1450,7 @@ p, li { white-space: pre-wrap; }
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../Helpers/TSHCountryHelper.py" line="181"/>
<location filename="../Helpers/TSHCountryHelper.py" line="182"/>
<source>Custom Flags</source>
<translation type="unfinished"></translation>
</message>
Expand Down

0 comments on commit a372a5b

Please sign in to comment.